I want to extend $.Deferred
with a new method which is supposed to have a signature similar to Deferred.fail()
. What is the best way of doing that?
How do I create a jQuery plugin extending $.Deferred?
586 views Asked by Shalom Aleichem At
1
Found a way to do it.
I'm overriding $.Deferred with a new function that calls the base function and extends the object it returns with a new method:
Here is the jsfiddle