From aa2780a554923f844aeb6916f0a8e677ba1d926a Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Wed, 23 Oct 2013 20:57:17 -0500 Subject: [PATCH] Minor: Cleanup and comment update. Change-Id: I502f838f55a0a7c046b9d5969a8e5fb6af0dbc10 --- js/lib/ext.Cite.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/lib/ext.Cite.js b/js/lib/ext.Cite.js index 729243422..d5ff31a39 100644 --- a/js/lib/ext.Cite.js +++ b/js/lib/ext.Cite.js @@ -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); }