modified reset during the loop

This commit is contained in:
Andrea Giammarchi
2015-03-12 23:30:00 +00:00
parent fe1c85aef0
commit c42a15bca1
7 changed files with 11 additions and 7 deletions

View File

@ -327,7 +327,7 @@ define(function () {
var
allText = grabAllTextNodes(node, []),
length = allText.length,
modified = false,
modified,
fragment,
subnode,
text,
@ -340,6 +340,7 @@ define(function () {
variant,
src;
while (length--) {
modified = false;
fragment = document.createDocumentFragment();
subnode = allText[length];
text = subnode.nodeValue;