This is a migrated thread and some comments may be shown as answers.

local DataSource getting an error when binding.

0 Answers 30 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 20 Sep 2012, 02:39 PM
This jsFiddle example is a slimmed down copy/paste from the MVVM RemoteBinding demo :

http://jsfiddle.net/rally25rs/WuQwn/

When I run this code, I receive the error "k.push is not a function", and the binding fails.  If I remove the DataSource, and instead make viewModel.productsSource = [ ... ] (so it is just an array, not a data source) then the binding works. It only seems to fail when I use a dataSource, but that is what the demo does.

Can someone point out what I am doing wrong?
Thanks for any help.

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Jeff
Top achievements
Rank 1
Share this question
or