jashkenas / backbone

Give your JS App some Backbone with Models, Views, Collections, and Events
http://backbonejs.org
MIT License
28.1k stars 5.39k forks source link

Bug in _removeModels: function(models, options) { #4257

Open Joc-Ne opened 2 years ago

Joc-Ne commented 2 years ago

var index = this.indexOf(model); returns always -1 var index = this.models.indexOf(model) returns the right result

jgonggrijp commented 2 years ago

@Joc-Ne Thanks for reporting. Could this be a duplicate of #3882 and if so, does upgrading to Backbone 1.4.1 solve the issue for you? Otherwise, please provide a bit more context.