Domanda

I need to check whether a object is Deferred or not using Jquery, how to check that?

Thanks in advance,

Madhu

È stato utile?

Soluzione

The logic used internally by jQuery's when() method is

if(object && $.isFunction( object.promise )){
}

src: deferred.js

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top