We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 912e37e + eccbbf1 commit 9d72e59Copy full SHA for 9d72e59
1 file changed
src/model/collection.js
@@ -37,7 +37,7 @@ function $CollectionFactory (BaseModel) {
37
},
38
set: function (models, options) {
39
var i;
40
- for (i = 0; i < this.models.length; i++) {
+ for (i=this.models.length-1; i>=0; i--) {
41
this.removeIndex(i);
42
}
43
0 commit comments