Skip to content
Permalink
Browse files
Fixed a loop that only worked in webkit.
  • Loading branch information
jaubourg authored and jaubourg committed Dec 31, 2010
1 parent 39d96ab commit 2fec5db
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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 );
}

0 comments on commit 2fec5db

Please sign in to comment.