Skip to content

Commit

Permalink
Spine: Fix todos not updating when checked while on a route
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 13, 2012
1 parent b47026f commit c1cfbfa
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
17 changes: 13 additions & 4 deletions architecture-examples/spine/js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions architecture-examples/spine/js/controllers/todos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions architecture-examples/spine/js/models/todo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion architecture-examples/spine/src/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TodoApp extends Spine.Controller
constructor: ->
super
Todo.bind 'create', @addNew
Todo.bind 'refresh', @addAll
Todo.bind 'refresh change', @addAll
Todo.bind 'refresh change', @toggleElems
Todo.bind 'refresh change', @renderFooter
Todo.fetch()
Expand Down

0 comments on commit c1cfbfa

Please sign in to comment.