mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Effects tests: Don't use internal jQuery properties to detect support for fixed positioning.
This commit is contained in:
parent
05adce8a89
commit
67540fd539
@ -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" );
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user