G
G
Garnet_Fox2018-02-23 13:21:22
JavaScript
Garnet_Fox, 2018-02-23 13:21:22

Where in the Deferred object are the functions passed to its methods stored?

Hello.

Sorry for the stupid question, but I can’t figure it out, does the deffered object itself store the function or not, and if so, where?

i.e. what I mean:

deff = jQuery.Deferred();
deff.done(function(){
console.log('Where is the function in the object?')
});
console.dir(def);

Accordingly, we get an object in the console, so where is the function or a reference to it in the done method, or is it not stored in the object at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-02-23
@lidacriss

done- this is the method (aka the function)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question