add action attribute to changeFold events
This commit is contained in:
parent
9a170dcd03
commit
cc27ed4efa
1 changed files with 2 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ function Folding() {
|
||||||
|
|
||||||
// Notify that fold data has changed.
|
// Notify that fold data has changed.
|
||||||
this.$modified = true;
|
this.$modified = true;
|
||||||
this._emit("changeFold", { data: fold });
|
this._emit("changeFold", { data: fold, action: "add" });
|
||||||
|
|
||||||
return fold;
|
return fold;
|
||||||
};
|
};
|
||||||
|
|
@ -393,7 +393,7 @@ function Folding() {
|
||||||
|
|
||||||
// Notify that fold data has changed.
|
// Notify that fold data has changed.
|
||||||
this.$modified = true;
|
this.$modified = true;
|
||||||
this._emit("changeFold", { data: fold });
|
this._emit("changeFold", { data: fold, action: "remove" });
|
||||||
};
|
};
|
||||||
|
|
||||||
this.removeFolds = function(folds) {
|
this.removeFolds = function(folds) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue