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() {
|
||||
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" );
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user