Effects tests: Proper detection of fixed position support in jQuery 1.7.

This commit is contained in:
Scott González 2011-11-09 11:38:16 -05:00
parent 50dab05784
commit 31b176106f

View File

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