Skip to content

Commit

Permalink
Bump v0.14.5
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Feb 10, 2018
1 parent 9bee876 commit df50c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dist/grapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -26124,7 +26124,8 @@ module.exports = Backbone.View.extend({
var opts = { at: index, noIncrement: 1 };

if (!dropContent) {
modelTemp = targetCollection.add({}, _extends({}, opts, { avoidStore: 1 }));
// Putting `avoidStore` here will make the UndoManager behave wrong
modelTemp = targetCollection.add({}, _extends({}, opts));

if (model) {
modelToDrop = model.collection.remove(model);
Expand All @@ -26138,7 +26139,7 @@ module.exports = Backbone.View.extend({
created = targetCollection.add(modelToDrop, opts);

if (!dropContent) {
targetCollection.remove(modelTemp, { avoidStore: 1 });
targetCollection.remove(modelTemp);
} else {
this.dropContent = null;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/grapes.min.js

Large diffs are not rendered by default.

0 comments on commit df50c88

Please sign in to comment.