Remove extra code from example that is not required, since it's confusingly similar to previous block

This commit is contained in:
Patrik Johnson 2017-01-05 15:08:43 +02:00
parent 3e3834a762
commit 4c84eafbdd

View file

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