Merge pull request #1511 from orbitbot/clarify-route-example

Remove extra code from example that is not required
This commit is contained in:
Leo Horie 2017-01-05 12:38:46 -05:00 committed by GitHub
commit baa630f2a6

View file

@ -545,9 +545,9 @@ m.route(document.body, "/user/list", {
"/user/list": {
onmatch: state.loadUsers,
render: function() {
return state.users.length > 0 ? state.users.map(function(user) {
return state.users.map(function(user) {
return m("div", user.id)
}) : "loading"
})
}
},
})