Refactor clearAnnotations.
This commit is contained in:
parent
64b888d383
commit
ec6053a57c
1 changed files with 1 additions and 2 deletions
|
|
@ -754,8 +754,7 @@ var EditSession = function(text, mode) {
|
||||||
* Clears all the annotations for this session. This function also triggers the `'changeAnnotation'` event.
|
* Clears all the annotations for this session. This function also triggers the `'changeAnnotation'` event.
|
||||||
**/
|
**/
|
||||||
this.clearAnnotations = function() {
|
this.clearAnnotations = function() {
|
||||||
this.$annotations = [];
|
this.setAnnotations([]);
|
||||||
this._emit("changeAnnotation", {});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue