Fix another surfaceModel.getFragment() in MWCitationDialog

Change-Id: Ic12652bf3d53396f84d558595ce1e4a2d0a22796
This commit is contained in:
Roan Kattouw 2014-04-16 11:42:15 -07:00
parent 16ec8ffdcf
commit d335e59330

View file

@ -90,7 +90,7 @@ ve.ui.MWCitationDialog.prototype.saveChanges = function () {
obj = this.transclusion.getPlainObject(); obj = this.transclusion.getPlainObject();
if ( !this.referenceModel ) { if ( !this.referenceModel ) {
surfaceModel.getFragment().collapseRangeToEnd(); this.getFragment().collapseRangeToEnd();
this.referenceModel = new ve.dm.MWReferenceModel(); this.referenceModel = new ve.dm.MWReferenceModel();
this.referenceModel.insertInternalItem( surfaceModel ); this.referenceModel.insertInternalItem( surfaceModel );
this.referenceModel.insertReferenceNode( surfaceFragment ); this.referenceModel.insertReferenceNode( surfaceFragment );