fix #1253 clearAnnotations uses wrong data structure for empty set.

This commit is contained in:
nightwing 2013-02-16 22:42:00 +04:00
commit bc599f23d6

View file

@ -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", {});
};