mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Rename stray this.refGroup usage to this.group in MWReferenceModel
this.refGroup is only ever read and never written, so obviously it's always undefined. And it turns out that creating references with listGroup='mwReference/undefined' crashes when you try to remove them again. Bug: 63085 Change-Id: Id326208bd6b3fe3b602ed6e3b57b7ea06d8ceb2c
This commit is contained in:
parent
cf56fbd0c4
commit
04f3296234
|
@ -83,7 +83,7 @@ ve.dm.MWReferenceModel.prototype.insertInternalItem = function ( surfaceModel )
|
|||
|
||||
// Fill in data
|
||||
this.setListKey( 'auto/' + internalList.getNextUniqueNumber() );
|
||||
this.setListGroup( 'mwReference/' + this.refGroup );
|
||||
this.setListGroup( 'mwReference/' + this.group );
|
||||
|
||||
// Insert internal reference item into document
|
||||
item = internalList.getItemInsertion( this.listGroup, this.listKey, [] );
|
||||
|
@ -172,7 +172,7 @@ ve.dm.MWReferenceModel.prototype.insertReferenceNode = function ( surfaceModel,
|
|||
'listKey': this.listKey,
|
||||
'listGroup': this.listGroup,
|
||||
'listIndex': this.listIndex,
|
||||
'refGroup': this.refGroup
|
||||
'refGroup': this.group
|
||||
}
|
||||
},
|
||||
{ 'type': '/mwReference' }
|
||||
|
|
Loading…
Reference in a new issue