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:
parent
634bc7f59c
commit
e0f67e2074
1 changed files with 1 additions and 1 deletions
|
|
@ -779,7 +779,7 @@ var EditSession = function(text, mode) {
|
||||||
* Returns the annotations for the `EditSession`.
|
* Returns the annotations for the `EditSession`.
|
||||||
**/
|
**/
|
||||||
this.getAnnotations = function() {
|
this.getAnnotations = function() {
|
||||||
return this.$annotations || {};
|
return this.$annotations || [];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue