Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it compatible with backbone? #29

Open
tgabi333 opened this issue Apr 29, 2015 · 4 comments
Open

is it compatible with backbone? #29

tgabi333 opened this issue Apr 29, 2015 · 4 comments

Comments

@tgabi333
Copy link

No description provided.

@yamsellem
Copy link

+1

@alexwright
Copy link

NB: I'm not the author.

I don't think it is based on a couple quick observations.

  • There's no $.ajax()
    Backbone uses ajax() internally for it's sync() method on collections and models.
  • In another issue someone is requesting .on() event method.
    IE delegating method binding to a parent DOM element. Backbone Views use this to bind to their root (this.el in the View) element, and dispatch to it's events: { ... } 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.

@rs3d
Copy link

rs3d commented May 19, 2015

Here are some infos about backbone without jquery.
https://github.com/jashkenas/backbone/wiki/Using-Backbone-without-jQuery

@orenmizr
Copy link

+1

could help sprint.js adoption rate. stats look great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants