Merge "Remove unused overrides in internal link annotation inspector"

This commit is contained in:
jenkins-bot 2018-05-07 15:41:33 +00:00 committed by Gerrit Code Review
commit 9a79c10fc2
2 changed files with 6 additions and 14 deletions

View file

@ -361,13 +361,8 @@ ve.ui.MWLinkAnnotationInspector.prototype.getInsertionData = function () {
}
};
/**
* ve.ui.MWInternalLinkAnnotationWidget.prototype.getHref will try to return an href, obviously,
* but we don't want this to go into the text and can just call its parent instead.
*/
ve.ui.MWLinkAnnotationInspector.prototype.getInsertionText = function () {
return this.annotationInput.constructor.super.prototype.getHref.call( this.annotationInput );
};
// #getInsertionText call annotationInput#getHref, which returns the link title,
// so no custmisation is needed.
/* Registration */

View file

@ -77,13 +77,10 @@ ve.ui.MWInternalLinkAnnotationWidget.prototype.getTextInputWidget = function ()
return this.input.query;
};
/**
* @inheritdoc
*/
ve.ui.MWInternalLinkAnnotationWidget.prototype.getHref = function () {
var title = ve.ui.MWInternalLinkAnnotationWidget.super.prototype.getHref.call( this );
return mw.util.getUrl( title );
};
// #getHref returns the link title, not a fully resolved URL, however the only
// use case of widget.getHref is for link insertion text, which expects a title.
//
// Callers needing the full resolved URL should use ve.resolveUrl
/**
* @inheritdoc