mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Fix getAnnotationIndexesFromOffset() to always return an array"
This commit is contained in:
commit
3eccf9f682
|
@ -323,7 +323,7 @@ ve.dm.ElementLinearData.prototype.getAnnotationIndexesFromOffset = function ( of
|
|||
if ( typeof element === 'string' ) {
|
||||
return [];
|
||||
} else {
|
||||
return element.annotations || element[1];
|
||||
return element.annotations || element[1] || [];
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue