Effects tests: Don't use internal jQuery properties to detect support for fixed positioning.

This commit is contained in:
Scott González 2012-06-16 08:19:41 -04:00
parent 05adce8a89
commit 67540fd539

View File

@ -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" );
}
});