Reputation: 4761
I have a function in collection view:
addAll: function() {
console.log(this.collection);
console.log(this.collection.length);
console.log(this.collection.models);
this.collection.each(this.addOne);
},
Why the results are:
1.
d
_byCid: Object
_byId: Object
length: 6
models: Array[6]
__proto__: x
2. 0
3. []
we can see the this.collection have models and length = 6 in the first result
Upvotes: 2
Views: 3224