mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 20:04:43 +00:00
fixed closure compiler warning for missing while block
This commit is contained in:
parent
3f9bca14a6
commit
c0b857ab5e
1 changed files with 3 additions and 1 deletions
|
|
@ -56,7 +56,9 @@ $.mobile.browser.ie = (function() {
|
|||
div = document.createElement( "div" ),
|
||||
a = div.all || [];
|
||||
|
||||
while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] );
|
||||
// added {} to silence closure compiler warnings. registering my dislike of all things
|
||||
// overly clever here for future reference
|
||||
while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] ){};
|
||||
|
||||
return v > 4 ? v : !v;
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue