Merge pull request #1078 from epidemian/patch-2

Update mithril.request.md
This commit is contained in:
Leo Horie 2016-05-27 10:28:35 -04:00
commit 129e0baf43

View file

@ -535,7 +535,7 @@ where:
demo.view = function(ctrl) {
return m("div", [
//in the first redraw, there's no user, so ensure we don't throw an error
ctrl.user ? ctrl.user.name : "no user"
ctrl.user() ? ctrl.user().name : "no user"
])
}
```