Fixes #9104 again.
This commit is contained in:
parent
950da8ae7f
commit
9d0b361458
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ jQuery.extend({
|
|||
if ( jQuery.isFunction( fn ) ) {
|
||||
deferred[ handler ](function() {
|
||||
returned = fn.apply( this, arguments );
|
||||
if ( jQuery.isFunction( returned.promise ) ) {
|
||||
if ( returned && jQuery.isFunction( returned.promise ) ) {
|
||||
returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.ping );
|
||||
} else {
|
||||
newDefer[ action ]( returned );
|
||||
|
|
Loading…
Reference in a new issue