backbone
backbone copied to clipboard
Give your JS App some Backbone with Models, Views, Collections, and Events
It would be great if in the second version of the library the model and collection got rid of the built-in backend API. In my opinion, the backend API should...
var index = this.indexOf(model); returns always -1 var index = this.models.indexOf(model) returns the right result
*2021-12-14 update by @jgonggrijp: I'll be maintaining Backbone. You can skip to [this comment](https://github.com/jashkenas/backbone/issues/4244#issuecomment-991381707) for the latest news.* As this project seems to be dead: is there a still maintained...
Firefox 11: https://github.com/jashkenas/backbone/runs/4907194010?check_suite_focus=true Chrome 26 and 40: https://github.com/jashkenas/backbone/runs/5250001247?check_suite_focus=true#step:6:105 IE 9 and 10: https://github.com/jashkenas/backbone/runs/5250001247?check_suite_focus=true#step:6:182 I have disabled these browsers in the `karma.conf-sauce.js` for the time being, but getting them to run...
While studying #4249, I found this old comment to another ticket by @jashkenas, in which he writes that Backbone once used to throw an error in this scenario: https://github.com/jashkenas/backbone/issues/2976#issuecomment-33711327. >...
fixes issue #4224 `collection._byId` is an internal object used solely for mapping ids to models, and doesn't need any of the standard object prototype methods for its internal usage. Unlikely...
OK so I'm not sure if this is really a bug or just something that needs clarifying in the documentation... but here goes. I have some code that uses a...
I'm looking up how to instantiate a Backbone.Model. Under the [docs for constructor / initialize](http://backbonejs.org/#Model-constructor), it says: > When creating an instance of a model, you can pass in the...
default normal behavior: ```js const coll = new Backbone.Collection(); coll.add({ id: 1 }); coll.add({ id: 1 }); coll.add({ id: 1 }); console.log(coll.lenght); //1 ``` but, if we did that with...
I stumbled upon a feature of `Collection.set` which surprised me slightly. On reflection I don't think it's a bug but I wanted to let you know about it so you...