Merge "Fix getAnnotationIndexesFromOffset() to always return an array"

This commit is contained in:
jenkins-bot 2013-05-25 15:08:43 +00:00 committed by Gerrit Code Review
commit 3eccf9f682

View file

@ -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] || [];
}
};