Skip to content

Commit df50c88

Browse files
committed
Bump v0.14.5
1 parent 9bee876 commit df50c88

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dist/grapes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26124,7 +26124,8 @@ module.exports = Backbone.View.extend({
2612426124
var opts = { at: index, noIncrement: 1 };
2612526125

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

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

2614026141
if (!dropContent) {
26141-
targetCollection.remove(modelTemp, { avoidStore: 1 });
26142+
targetCollection.remove(modelTemp);
2614226143
} else {
2614326144
this.dropContent = null;
2614426145
}

dist/grapes.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)