addyosmani/backbone-fundamentals — Issue #67: AppView.addOne() doesn't see the view members when fetch() is called
Author: mariusa
Created: 2012-02-02 22:37:10+00:00
State: open

More of a question than issue:

in modular-todo-app -> app.js, add this code:

addOne: function(todo) {
console.log("addOne: " + this.statsTemplate);
....

While this works for items added after app is loaded, for items fetched from localStorage it will give
addOne: undefined

Any explanation why and how to fix it? (i'm trying to access any AppView member, "statsTemplate" is just an example)
Thanks