Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Any hints of what is wrong?

$
0
0
Here's your code (fixed) in a Fiddle.

Few small things I had to fix:

1) A findAll fixture just has to return an Array of objects. You were wrapping your Array in an extra Array
2) s in your success function will be a can.Model.List (Observable Array) of model instances. Using console.dir(s) should tell you why s.somename is undefined.

Viewing all articles
Browse latest Browse all 3491

Trending Articles