choo: fix updates

This commit is contained in:
Yoshua Wuyts
2016-05-11 14:56:18 +07:00
parent 6699f412f7
commit 5f68a8bf3a
3 changed files with 31 additions and 17 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ app.model('title', {
'update': (action, state) => ({ title: action.payload })
},
effects: {
'update': (action, state, send) => (document.title = action.title)
'update': (action, state, send) => (document.title = action.payload)
}
})
@@ -26,5 +26,5 @@ app.router((route) => [
route('/', mainView)
])
const node = app.start()
document.body.appendChild(node)
const tree = app.start()
document.body.appendChild(tree)