mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects tests: Proper detection of fixed position support in jQuery 1.7.
This commit is contained in:
parent
50dab05784
commit
31b176106f
@ -54,8 +54,13 @@ function suite( position ) {
|
|||||||
$(function() {
|
$(function() {
|
||||||
suite( "absolute" );
|
suite( "absolute" );
|
||||||
suite( "relative" );
|
suite( "relative" );
|
||||||
$.offset.initialize();
|
var fixed = $.support.fixedPosition;
|
||||||
if ( $.offset.supportsFixedPosition ) {
|
// jQuery < 1.7 uses $.offset.supportsFixedPosition
|
||||||
|
if ( fixed === undefined ) {
|
||||||
|
$.offset.initialize();
|
||||||
|
fixed = $.offset.supportsFixedPosition;
|
||||||
|
}
|
||||||
|
if ( fixed ) {
|
||||||
suite( "fixed" );
|
suite( "fixed" );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user