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

This commit is contained in:
jaubourg 2010-12-21 17:04:07 +01:00 committed by jaubourg
parent d5bb001b9a
commit 5bfbe7eaf6

View file

@ -800,7 +800,7 @@ jQuery.extend({
deferred = {
// then( f1, f2, ...)
then: function then() {
then: function () {
if ( ! cancelled ) {
@ -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 );
}