From e0f67e20744d5abf7b2c0215f76c42f0c090a98d Mon Sep 17 00:00:00 2001 From: Sergi Mansilla Date: Fri, 2 Nov 2012 17:59:39 +0100 Subject: [PATCH] Fix bad type return `this.$annotations` is always an Array, but the return type when `this.$annotations` is falsy is an object. This commit fixes that. --- 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 d24888da..b23a60ec 100644 --- a/lib/ace/edit_session.js +++ b/lib/ace/edit_session.js @@ -779,7 +779,7 @@ var EditSession = function(text, mode) { * Returns the annotations for the `EditSession`. **/ this.getAnnotations = function() { - return this.$annotations || {}; + return this.$annotations || []; }; /**