Fixed a loop that only worked in webkit.

This commit is contained in:
jaubourg 2010-12-21 00:56:00 +01:00 committed by jaubourg
parent 39d96ab8c5
commit 2fec5dbecd

View File

@ -800,7 +800,7 @@ jQuery.extend({
deferred = {
// then( f1, f2, ...)
then: function() {
then: function then() {
if ( ! cancelled ) {
@ -820,7 +820,7 @@ jQuery.extend({
elem = args[ i ];
type = jQuery.type( elem );
if ( type === "array" ) {
deferred.then.apply( deferred , elem );
then.apply( this , elem );
} else if ( type === "function" ) {
callbacks.push( elem );
}