mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Check for instance of generic LinkAnnotation when querying target.
Resolves (Bug 44686) Change-Id: I0ff962330e061aea66a25a923f46d6759e5ff6af
This commit is contained in:
parent
c4ee328edf
commit
78a99fb0a3
|
@ -81,5 +81,8 @@ ve.ui.LinkTargetInputWidget.prototype.getAnnotation = function () {
|
|||
* @returns {string} Target
|
||||
*/
|
||||
ve.ui.LinkTargetInputWidget.prototype.getTargetFromAnnotation = function ( annotation ) {
|
||||
return annotation.data.href;
|
||||
if ( annotation instanceof ve.dm.LinkAnnotation ) {
|
||||
return annotation.data.href;
|
||||
}
|
||||
return '';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue