mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 15:04:02 +00:00
Minor: Cleanup and comment update.
Change-Id: I502f838f55a0a7c046b9d5969a8e5fb6af0dbc10
This commit is contained in:
parent
914bf97575
commit
aa2780a554
|
@ -467,6 +467,10 @@ References.prototype.insertReferencesIntoDOM = function(refsNode) {
|
|||
refsNode.setAttribute('data-mw', dataMW);
|
||||
|
||||
// Remove all children from the references node
|
||||
//
|
||||
// Ex: When {{Reflist}} is reused from the cache, it comes with
|
||||
// a bunch of references as well. We have to remove all those cached
|
||||
// references before generating fresh references.
|
||||
while (refsNode.firstChild) {
|
||||
refsNode.removeChild(refsNode.firstChild);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue