backbone-documentmodel icon indicating copy to clipboard operation
backbone-documentmodel copied to clipboard

A plugin to create entire Document structures with nested Backbone.js Models & Collections with deep model references and event bubbling.

Results 12 backbone-documentmodel issues
Sort by recently updated
recently updated
newest added

Not sure if this is a fix, but a workaround for a bigger issue with pseudoIdAttribute. Also includes an earlier fix from another pull request, but I closed that one...

Calling toJSON on a collection containing models that have string[] as an attribute will return these string[] as an array of undefined in the json object.

I knew #12 was solved back in May, but after circling around an obscure bug for half an hour, I realized the last 3 commits never made it to the...

When calling fetch() to populate a DocumentCollection, then calling set() 2 times on one of the models of the collection triggers an exception if the model data contains an array....

With an object like this: ``` var obj = { id: 'a1', foo: { id: 'b2', bar: 'baz' } } ``` instantiation of `foo` seems to fail, it's simply omitted...

Here's my stab at this problem. It seems to work for me.

In the following JSON object: ``` var user = { addresses: [ { type: 'Shipping', city: 'Charlottesville', state: 'VA', items: [ {id: 1, name: "item1"}, {id: 2, name: "item2"} ]...

This looks like a really great take on the Backbone associations problem. I like how you can get up and running with live Model / Collection associations with zero configuration....

enhancement

Something like this is what I was referring to in #8. I tried this out and it is extremely handy for doing things like implementing an "edited" icon on screen...

enhancement