Skip to content

Commit ec81b46

Browse files
committed
Fix breakage on Firefox <4
Prior to Gecko 2.0 (Firefox 4) getComputedStyle requires a second parameter.. See https://developer.mozilla.org/en/docs/DOM/window.getComputedStyle. This breakage was introduced in 1.3.0.
1 parent 62bb9e5 commit ec81b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function transform3dTest() {
8383
for ( t in transforms ) {
8484
if( el.style[ t ] !== undefined ){
8585
el.style[ t ] = "translate3d( 100px, 1px, 1px )";
86-
ret = window.getComputedStyle( el ).getPropertyValue( transforms[ t ] );
86+
ret = window.getComputedStyle( el, null ).getPropertyValue( transforms[ t ] );
8787
}
8888
}
8989
return ( !!ret && ret !== "none" );

0 commit comments

Comments
 (0)