Minor: Cleanup and comment update.

Change-Id: I502f838f55a0a7c046b9d5969a8e5fb6af0dbc10
This commit is contained in:
Subramanya Sastry 2013-10-23 20:57:17 -05:00
parent 914bf97575
commit aa2780a554

View file

@ -467,6 +467,10 @@ References.prototype.insertReferencesIntoDOM = function(refsNode) {
refsNode.setAttribute('data-mw', dataMW); refsNode.setAttribute('data-mw', dataMW);
// Remove all children from the references node // 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) { while (refsNode.firstChild) {
refsNode.removeChild(refsNode.firstChild); refsNode.removeChild(refsNode.firstChild);
} }