Merge remote-tracking branch 'origin/rewrite' into rewrite

This commit is contained in:
Leo Horie 2016-12-07 10:10:08 -05:00
commit 549b773fea
4 changed files with 49 additions and 48 deletions

View file

@ -429,7 +429,7 @@ var state = {
m.route(document.body, "/user/list", {
"/user/list": {
onmatch: loadUsers,
onmatch: state.loadUsers,
render: function() {
return state.users.length > 0 ? state.users.map(function() {
return m("div", user.id)