addyosmani/backbone-fundamentals — Issue #8: model example (2 minor thing)
Author: butu5
Created: 2011-12-22 17:44:23+00:00
State: open

I created following example using the backbone-fundamentals readme file

[Models example][1]

While running the code found one minor issue (most probably my mistake :) )
There is some syntax error at [L16 changeSrc][2]

Also, initially got confused how to access the direct attributes.
I thought the way to access is direct attribute is myPhoto.src [L44 direct access][3]

[1]: https://github.com/butu5/backbone-fundamentals/blob/master/examples/models.js "Models example"
[2]: https://github.com/butu5/backbone-fundamentals/blob/master/examples/models.js#L16-22 "L16 changeSrc"
[3]: https://github.com/butu5/backbone-fundamentals/blob/master/examples/models.js#L44 "L44 direct access"