fix #1253 clearAnnotations uses wrong data structure for empty set.
This commit is contained in:
parent
8d07cf88d1
commit
bc599f23d6
1 changed files with 1 additions and 1 deletions
|
|
@ -754,7 +754,7 @@ var EditSession = function(text, mode) {
|
|||
* Clears all the annotations for this session. This function also triggers the `'changeAnnotation'` event.
|
||||
**/
|
||||
this.clearAnnotations = function() {
|
||||
this.$annotations = {};
|
||||
this.$annotations = [];
|
||||
this._emit("changeAnnotation", {});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue