diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js index 0c7ac769..24a654dd 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -754,8 +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._emit("changeAnnotation", {}); + this.setAnnotations([]); }; /**