From bc599f23d67cd003c349d617fba419e43bdb6c3d Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 16 Feb 2013 22:42:00 +0400 Subject: [PATCH] fix #1253 clearAnnotations uses wrong data structure for empty set. --- lib/ace/edit_session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/edit_session.js b/lib/ace/edit_session.js index 2c556409..146c8b19 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -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", {}); };