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" );
var fixed = $.support.fixedPosition;
// jQuery < 1.7 uses $.offset.supportsFixedPosition
if ( fixed === undefined ) {
$.offset.initialize();
if ( $.offset.supportsFixedPosition ) {
fixed = $.offset.supportsFixedPosition;
}
if ( fixed ) {
suite( "fixed" );
}
});