Tagged in

Jquery

JavascriptJedi
JavascriptJedi
Use the Force in JavaScript
More information
Followers
4
Elsewhere
More, on Medium

Deferred object as callback

Callbacks are a nice way of Iversion of control, but are even more powerful with deferred objects.
Basically callbacks are a way to pass back the control from a called function, the deferred/promise just do the opposite: it returns the control the called function.