Merge pull request #783 from mt-caret/next
Fix sample code in m.request documentation
This commit is contained in:
commit
8fa84c33f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue