Skip to content

Commit 31b1761

Browse files
committed
Effects tests: Proper detection of fixed position support in jQuery 1.7.
1 parent 50dab05 commit 31b1761

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/unit/effects/effects_scale.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ function suite( position ) {
5454
$(function() {
5555
suite( "absolute" );
5656
suite( "relative" );
57-
$.offset.initialize();
58-
if ( $.offset.supportsFixedPosition ) {
57+
var fixed = $.support.fixedPosition;
58+
// jQuery < 1.7 uses $.offset.supportsFixedPosition
59+
if ( fixed === undefined ) {
60+
$.offset.initialize();
61+
fixed = $.offset.supportsFixedPosition;
62+
}
63+
if ( fixed ) {
5964
suite( "fixed" );
6065
}
6166
});

0 commit comments

Comments
 (0)