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.
This commit is contained in:
Sergi Mansilla 2012-11-02 17:59:39 +01:00
commit e0f67e2074

View file

@ -779,7 +779,7 @@ var EditSession = function(text, mode) {
* Returns the annotations for the `EditSession`.
**/
this.getAnnotations = function() {
return this.$annotations || {};
return this.$annotations || [];
};
/**