Commit 16a38406 authored by Paul Miller's avatar Paul Miller

Chaplin 1.0.0.

parent 0162bf8f
......@@ -7,7 +7,7 @@ module.exports = class IndexController extends Chaplin.Controller
# The method is executed before any controller actions.
# We compose structure in order for it to be rendered only once.
beforeAction: ->
@compose 'structure', ->
@reuse 'structure', ->
params = collection: mediator.todos
@header = new HeaderView params
@footer = new FooterView params
......
......@@ -23,7 +23,7 @@ module.exports = class TodosView extends CollectionView
toggleCompleted: (event) ->
isChecked = event.delegateTarget.checked
@collection.each (todo) -> todo.save completed: isChecked
@collection.forEach (todo) -> todo.save completed: isChecked
clear: ->
@collection.getCompleted().forEach (model) ->
......
......@@ -3,8 +3,8 @@
"version": "0.0.0",
"dependencies": {
"todomvc-common": "~0.1.6",
"chaplin": "~0.11.3",
"exoskeleton": "~0.5.1",
"chaplin": "~1.0.0",
"exoskeleton": "~0.6.3",
"backbone.localStorage": "git://github.com/paulmillr/Backbone.localStorage.git#9c225b37bdea4ac21d4b2445fa8962fe74e3175b"
},
"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