Skip to content

Commit

Permalink
Removed NFE to make old Safari happy and avoid leaks in IE (as per Da…
Browse files Browse the repository at this point in the history
…vid Murdoch's warning).
  • Loading branch information
jaubourg authored and jaubourg committed Dec 31, 2010
1 parent fef0f63 commit 43828b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Expand Up @@ -800,7 +800,7 @@ jQuery.extend({
deferred = {

// then( f1, f2, ...)
then: function then() {
then: function () {

if ( ! cancelled ) {

Expand All @@ -820,7 +820,7 @@ jQuery.extend({
elem = args[ i ];
type = jQuery.type( elem );
if ( type === "array" ) {
then.apply( this , elem );
deferred.then.apply( deferred , elem );
} else if ( type === "function" ) {
callbacks.push( elem );
}
Expand Down

0 comments on commit 43828b7

Please sign in to comment.