Use target widget factory method

Change-Id: I107afbb4f7e8ae97bdb27f3b5f7acd357dada414
This commit is contained in:
Ed Sanders 2016-06-29 17:14:43 +01:00
parent 724d890541
commit 1505000fe5

View file

@ -249,7 +249,7 @@ ve.ui.MWReferenceDialog.prototype.useReference = function ( ref ) {
} );
// Properties
this.referenceTarget = new ve.ui.MWTargetWidget(
this.referenceTarget = ve.init.target.createTargetWidget(
this.referenceModel.getDocument(),
{
tools: ve.copy( ve.init.target.constructor.static.toolbarGroups ),