Refactor clearAnnotations.

This commit is contained in:
David Braun 2013-02-16 16:32:06 -03:00
commit ec6053a57c

View file

@ -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([]);
};
/**