Commit 43828b74 authored by jaubourg's avatar jaubourg Committed by jaubourg

Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).

parent fef0f635
...@@ -800,7 +800,7 @@ jQuery.extend({ ...@@ -800,7 +800,7 @@ jQuery.extend({
deferred = { deferred = {
// then( f1, f2, ...) // then( f1, f2, ...)
then: function then() { then: function () {
if ( ! cancelled ) { if ( ! cancelled ) {
...@@ -820,7 +820,7 @@ jQuery.extend({ ...@@ -820,7 +820,7 @@ jQuery.extend({
elem = args[ i ]; elem = args[ i ];
type = jQuery.type( elem ); type = jQuery.type( elem );
if ( type === "array" ) { if ( type === "array" ) {
then.apply( this , elem ); deferred.then.apply( deferred , elem );
} else if ( type === "function" ) { } else if ( type === "function" ) {
callbacks.push( elem ); callbacks.push( elem );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment