Merge pull request #783 from mt-caret/next

Fix sample code in m.request documentation
This commit is contained in:
Leo Horie 2015-08-28 09:49:55 -04:00
commit 8fa84c33f8

View file

@ -408,7 +408,7 @@ demo.controller = function() {
demo.view = function(ctrl) {
//This view gets rendered before the request above completes
//Calling .map doesn't throw an error because we defined the initial value to be an empty array, instead of undefined
return ctrl.users().map(function() {
return ctrl.users().map(function(user) {
return m("div", user.name)
})
}