Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit c0b857a

Browse files
committed
fixed closure compiler warning for missing while block
1 parent 3f9bca1 commit c0b857a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/jquery.mobile.support.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ $.mobile.browser.ie = (function() {
5656
div = document.createElement( "div" ),
5757
a = div.all || [];
5858

59-
while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] );
59+
// added {} to silence closure compiler warnings. registering my dislike of all things
60+
// overly clever here for future reference
61+
while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] ){};
6062

6163
return v > 4 ? v : !v;
6264
})();

0 commit comments

Comments
 (0)