fixing lingering idAttribute spot -- thanks, jdknezek

This commit is contained in:
Jeremy Ashkenas
2011-02-07 14:37:07 -05:00
parent b86d3f6afc
commit c5160fca23

View File

@@ -607,7 +607,7 @@
this._remove(model, options);
}
if (ev === 'change:id') {
delete this._byId[model.previous('id')];
delete this._byId[model.previous(model.idAttribute)];
this._byId[model.id] = model;
}
this.trigger.apply(this, arguments);