Backbone adapter from sample does not work with data-each-[item] binding #70

tsareg opened this Issue Sep 14, 2012 · 3 comments

5 participants


Maybe I'm doing something wrong, but it seems that sample adapter for Backbone doesn't work with "data-each-[item]" binding.

Non-working sample:
Working sample:

The only difference there is in read function:

read: function(obj, keypath) {
    return obj instanceof Backbone.Collection ? obj["models"] : obj.get(keypath);

It's because you are binding to a Backbone.Collection which is fundamentally different to a Backbone.Model; see #57 for more info.


Duplicate of issue 57


+1 for the jsfiddle sample!!!!

@mikeric mikeric closed this Apr 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment