Applies exception in Style Guidelines regarding objects and functions when they are the last argument of a function call.

This commit is contained in:
jaubourg 2011-04-08 17:41:14 +02:00
parent 7a1c6beab0
commit 2594a935de
6 changed files with 10 additions and 10 deletions

View file

@ -128,7 +128,7 @@ jQuery.extend({
} else {
deferred[ handler ]( newDefer[ action ] );
}
} );
});
}).promise();
},
// Get a promise for this deferred
@ -146,7 +146,7 @@ jQuery.extend({
}
return obj;
}
} );
});
// Make sure only one callback list will be used
deferred.done( failDeferred.cancel ).fail( deferred.cancel );
// Unexpose cancel