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

Thanks in advance,

Madhu

有帮助吗?

解决方案

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

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

src: deferred.js

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top