From d335e59330d0690a09f8d5d183ae7933092bcdd9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 16 Apr 2014 11:42:15 -0700 Subject: [PATCH] Fix another surfaceModel.getFragment() in MWCitationDialog Change-Id: Ic12652bf3d53396f84d558595ce1e4a2d0a22796 --- modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js index cb2b10656e..a04f8e27b3 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWCitationDialog.js @@ -90,7 +90,7 @@ ve.ui.MWCitationDialog.prototype.saveChanges = function () { obj = this.transclusion.getPlainObject(); if ( !this.referenceModel ) { - surfaceModel.getFragment().collapseRangeToEnd(); + this.getFragment().collapseRangeToEnd(); this.referenceModel = new ve.dm.MWReferenceModel(); this.referenceModel.insertInternalItem( surfaceModel ); this.referenceModel.insertReferenceNode( surfaceFragment );