wyuenho/backgrid — pull request #207 by twalker (2013-05-31 19:14:50+00:00)
Title: fix remove handler to also delete references to existing models

The backgrid-select-all extension was removing references to unsaved models but not saved models. This fixes the issue by checking for model.id instead of just model.cid:

this.listenTo(collection, "remove", function (model) {
delete selectedModels[model.id || model.cid];
});