Permalink
Browse files

Effects tests: Proper detection of fixed position support in jQuery 1.7.

  • Loading branch information...
1 parent 50dab05 commit 31b176106fff6e25de87469644885f9a3fa98bdc @scottgonzalez scottgonzalez committed Nov 9, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 tests/unit/effects/effects_scale.js
@@ -54,8 +54,13 @@ function suite( position ) {
$(function() {
suite( "absolute" );
suite( "relative" );
- $.offset.initialize();
- if ( $.offset.supportsFixedPosition ) {
+ var fixed = $.support.fixedPosition;
+ // jQuery < 1.7 uses $.offset.supportsFixedPosition
+ if ( fixed === undefined ) {
+ $.offset.initialize();
+ fixed = $.offset.supportsFixedPosition;
+ }
+ if ( fixed ) {
suite( "fixed" );
}
});

0 comments on commit 31b1761

Please sign in to comment.