othree / mootools-deferred

Deferred object from jQuery
4 stars 1 forks source link

Implementing deferred.promise() #1

Open mohsentaleb opened 11 years ago

mohsentaleb commented 11 years ago

I'm using Backbone.Marionette on top of Mootools and it uses $.deferred and deferred.promise() on its Marionette.Callbacks function.

Any updates on your part regarding adding this extra function?

othree commented 11 years ago

Does Marionette can work with Mootools? That surprise me.

My suggestion is not to use this one for new projects. I don't use this one for a long time. Marionette's document have two more options for deferred. You should take a look on it first. If you still want to use this project. Let me know.

mohsentaleb commented 11 years ago

Well, actually no. Backbone itself has some minor dependencies with jQuery which I didn't want to use it in a project, and that thing led me to write an adapter to override some jQuery methods used, with their mootools equivalents. Check it out: https://github.com/mohsentaleb/backbone-mootools-adapter

Then I decided to use Marionette on top of Backbone, which also uses some other jQuery methods such as $.Deferred.

Thanks for the link by the way. didn't know that. I'll update if anything comes up.