Skip to content
Permalink
Browse files

Effects tests: Don't use internal jQuery properties to detect support…

… for fixed positioning.
  • Loading branch information
scottgonzalez committed Jun 16, 2012
1 parent 05adce8 commit 67540fd539b660c0eb3925d063014ff4e6c91667
Showing with 7 additions and 7 deletions.
  1. +7 −7 tests/unit/effects/effects_scale.js
@@ -53,13 +53,13 @@ function suite( position ) {
$(function() {
suite( "absolute" );
suite( "relative" );
var fixed = $.support.fixedPosition;
// jQuery < 1.7 uses $.offset.supportsFixedPosition
if ( fixed === undefined ) {
$.offset.initialize();
fixed = $.offset.supportsFixedPosition;
}
if ( fixed ) {
var fixedElem = $( "<div>" )
.css({
position: "fixed",
top: 10
})
.appendTo( "body" );
if ( fixedElem.offset().top === 10 ) {
suite( "fixed" );
}
});

0 comments on commit 67540fd

Please sign in to comment.
You can’t perform that action at this time.