sprint
sprint copied to clipboard
is it compatible with backbone?
+1
NB: I'm not the author.
I don't think it is based on a couple quick observations.
- There's no
$.ajax()
Backbone usesajax()
internally for it'ssync()
method on collections and models. - In another issue someone is requesting
.on()
event method. IE delegating method binding to a parent DOM element. BackboneView
s use this to bind to their root (this.el
in the View) element, and dispatch to it'sevents: { ... }
member.
Keeping ajax out of this lib makes a lot of sense to me, it's beyond the scope in my opinion. For Backbones purposes I think it would make more sense to rewrite it's sync()
method to use the modern agreed upon XHR2 API, in keeping with this (sprint) libraries avoidance of legacy cruft.
The event binding it more problematic. If it is added it would be a good fit for use with Backbone I think.
Here are some infos about backbone without jquery. https://github.com/jashkenas/backbone/wiki/Using-Backbone-without-jQuery
+1
could help sprint.js adoption rate. stats look great.