We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50dab05 commit 31b1761Copy full SHA for 31b1761
tests/unit/effects/effects_scale.js
@@ -54,8 +54,13 @@ function suite( position ) {
54
$(function() {
55
suite( "absolute" );
56
suite( "relative" );
57
- $.offset.initialize();
58
- if ( $.offset.supportsFixedPosition ) {
+ var fixed = $.support.fixedPosition;
+ // jQuery < 1.7 uses $.offset.supportsFixedPosition
59
+ if ( fixed === undefined ) {
60
+ $.offset.initialize();
61
+ fixed = $.offset.supportsFixedPosition;
62
+ }
63
+ if ( fixed ) {
64
suite( "fixed" );
65
}
66
});
0 commit comments