Fixed animationComplete return value bug.

This commit is contained in:
Martin Kou 2011-02-11 10:21:00 -08:00 committed by John Bender
parent 09f5719865
commit df21c701b5
2 changed files with 6 additions and 0 deletions

View file

@ -225,6 +225,7 @@
else{
// defer execution for consistency between webkit/non webkit
setTimeout(callback, 0);
return $(this);
}
};

View file

@ -146,4 +146,9 @@
start();
}, 900);
});
test( "animationComplete return value", function(){
$.fn.animationComplete = animationCompleteFn;
equals($("#foo").animationComplete(function(){})[0], $("#foo")[0]);
});
})(jQuery);