Merge "Adjust uses of renamed PreviewWidget to PreviewElement"

This commit is contained in:
jenkins-bot 2015-09-25 09:41:03 +00:00 committed by Gerrit Code Review
commit a5d3a4dfae
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ ve.ui.MWReferenceContextItem.prototype.getRendering = function () {
var refModel;
if ( this.model.isEditable() ) {
refModel = ve.dm.MWReferenceModel.static.newFromReferenceNode( this.model );
this.view = new ve.ui.PreviewWidget(
this.view = new ve.ui.PreviewElement(
refModel.getDocument().getInternalList().getItemNode( refModel.getListIndex() )
);

View file

@ -151,7 +151,7 @@ ve.ui.MWReferenceSearchWidget.prototype.buildIndex = function () {
// Only increment counter for real references
n++;
refModel = ve.dm.MWReferenceModel.static.newFromReferenceNode( refNode );
view = new ve.ui.PreviewWidget(
view = new ve.ui.PreviewElement(
refModel.getDocument().getInternalList().getItemNode( refModel.getListIndex() )
);