Hacker News new | ask | show | jobs
by shebson 4516 days ago
I love the idea of removing Backbone's jQuery dependency. If I could use Backbone without jQuery, I would gladly leave jQuery behind.

For my use case, Backbone would also have to lose it's jQuery dependency for RESTful model persistence, but maybe that means I should get to work on it and submit a PR :-)

3 comments

> I love the idea of removing Backbone's jQuery dependency. If I could use Backbone without jQuery

You can the only hard dependency of backbone is underscore.

You can just replace Backbone.ajax yourself. There are many $.ajax drop in replacements out there that you can use.
Check this fork of backbone out:

https://github.com/paulmillr/exoskeleton