afeld / backbone-nested

A plugin to make Backbone.js keep track of nested attributes - looking for maintainers! https://github.com/afeld/backbone-nested/issues/157
https://afeld.github.com/backbone-nested/
MIT License
445 stars 83 forks source link

Typo in README? #153

Closed jakelodwick closed 8 years ago

jakelodwick commented 8 years ago

Maybe I'm reading this wrong, but it seems like that get should be a set, right?

image

jakelodwick commented 8 years ago

btw, this library saved me a ton of time & LOC, thanks so much!

afeld commented 8 years ago

it seems like that get should be a set

I'll admit it looks weird, but that example is written as intended. In a normal Backbone Model, the get would retrieve the object that exists at the name attribute, and the assignment (=) would modify it. Backbone Nested means you use a set instead to modify that nested attribute.

this library saved me a ton of time & LOC, thanks so much!

Awesome to hear!