You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of in all cases defining an object with 'onLoad' and 'onError' properties to handle callbacks, could we modify circuits to return a promise so we can utilize some of dojo's nifty promise apis?
A suggestion for circuits-js:
Instead of in all cases defining an object with 'onLoad' and 'onError' properties to handle callbacks, could we modify circuits to return a promise so we can utilize some of dojo's nifty promise apis?
For example:
It'd be really nice to use 'dojo/promise/all' and 'dojo/when' in a lot of cases.
Finally, we could mix and match circuits stuff with regular dojo/requests calls (since they return deferreds). http://dojotoolkit.org/documentation/tutorials/1.8/deferreds/
The text was updated successfully, but these errors were encountered: