What is wrong with the following code?
var Item = Backbone.Model.extend({
defaults: {
}
});
var List = Backbone.Collection.extend({
model: Item
});
var collection = new List({'variable':this}); //collection is NOT null!
var result = new Item({'collection':collection}); //result.collection is undefined! why?
Add your item to the list
or