Skip to content

Commit

Permalink
Remove non-persistent objects when leaving edit state
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Nov 3, 2011
1 parent d2125e3 commit c16f27a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.Midgard.midgardStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
_.each(model.attributes, function(attributeValue, property) {
if (attributeValue instanceof widget.vie.Collection) {
attributeValue.forEach(function(model) {
if (typeof model.id === 'object') {
if (!model.id) {
attributeValue.remove(model);
}
});
Expand Down

0 comments on commit c16f27a

Please sign in to comment.