add action attribute to changeFold events

This commit is contained in:
Harutyun Amirjanyan 2013-05-27 12:12:55 -04:00
commit cc27ed4efa

View file

@ -332,7 +332,7 @@ function Folding() {
// Notify that fold data has changed.
this.$modified = true;
this._emit("changeFold", { data: fold });
this._emit("changeFold", { data: fold, action: "add" });
return fold;
};
@ -393,7 +393,7 @@ function Folding() {
// Notify that fold data has changed.
this.$modified = true;
this._emit("changeFold", { data: fold });
this._emit("changeFold", { data: fold, action: "remove" });
};
this.removeFolds = function(folds) {