Skip to content

Commit a304e17

Browse files
Support: linting.
1 parent 6be7050 commit a304e17

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

js/jquery.mobile.support.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,22 +261,20 @@ if ( nokiaLTE7_3 ) {
261261
function inlineSVG() {
262262
// Thanks Modernizr & Erik Dahlstrom
263263
var w = window,
264-
svg = !!w.document.createElementNS
265-
&& !!w.document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect
266-
&& !!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1"),
264+
svg = !!w.document.createElementNS && !!w.document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect && !!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1"),
267265
support = function( data ) {
268266
if ( !( data && svg ) ) {
269267
$( "html" ).addClass( "no-svg" );
270268
}
271-
}
269+
},
272270
img = new w.Image();
273-
271+
274272
img.onerror = function() {
275273
support( false );
276-
}
274+
};
277275
img.onload = function() {
278276
support( img.width === 1 && img.height === 1 );
279-
}
277+
};
280278
img.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
281279
}
282280
inlineSVG();

0 commit comments

Comments
 (0)