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

Closed
tsareg opened this Issue Sep 14, 2012 · 3 comments

5 participants

@tsareg

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: http://jsfiddle.net/9afZt/
Working sample: http://jsfiddle.net/fwhuf/2/

The only difference there is in read function:

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

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

@ansman

Duplicate of issue 57

@reneolivo

+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