Commit 9a267f0a authored by Addy Osmani's avatar Addy Osmani

Merge pull request #788 from paulmillr/chapl

Chaplin 1.0.0.
parents 2808841a 16a38406
...@@ -7,7 +7,7 @@ module.exports = class IndexController extends Chaplin.Controller ...@@ -7,7 +7,7 @@ module.exports = class IndexController extends Chaplin.Controller
# The method is executed before any controller actions. # The method is executed before any controller actions.
# We compose structure in order for it to be rendered only once. # We compose structure in order for it to be rendered only once.
beforeAction: -> beforeAction: ->
@compose 'structure', -> @reuse 'structure', ->
params = collection: mediator.todos params = collection: mediator.todos
@header = new HeaderView params @header = new HeaderView params
@footer = new FooterView params @footer = new FooterView params
......
...@@ -23,7 +23,7 @@ module.exports = class TodosView extends CollectionView ...@@ -23,7 +23,7 @@ module.exports = class TodosView extends CollectionView
toggleCompleted: (event) -> toggleCompleted: (event) ->
isChecked = event.delegateTarget.checked isChecked = event.delegateTarget.checked
@collection.each (todo) -> todo.save completed: isChecked @collection.forEach (todo) -> todo.save completed: isChecked
clear: -> clear: ->
@collection.getCompleted().forEach (model) -> @collection.getCompleted().forEach (model) ->
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"todomvc-common": "~0.1.6", "todomvc-common": "~0.1.6",
"chaplin": "~0.11.3", "chaplin": "~1.0.0",
"exoskeleton": "~0.5.1", "exoskeleton": "~0.6.3",
"backbone.localStorage": "git://github.com/paulmillr/Backbone.localStorage.git#9c225b37bdea4ac21d4b2445fa8962fe74e3175b" "backbone.localStorage": "git://github.com/paulmillr/Backbone.localStorage.git#9c225b37bdea4ac21d4b2445fa8962fe74e3175b"
}, },
"overrides": { "overrides": {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment