Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 6068542

Browse files
committed
Avoid global var leakage
1 parent 9ae7dc9 commit 6068542

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dom/parse.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ wysihtml5.dom.parse = (function() {
110110
var oldNodeType = oldNode.nodeType,
111111
oldChilds = oldNode.childNodes,
112112
oldChildsLength = oldChilds.length,
113-
newNode,
114113
method = NODE_TYPE_MAPPING[oldNodeType],
115-
i = 0;
114+
i = 0,
115+
newNode,
116+
newChild;
116117

117118
newNode = method && method(oldNode);
118119

0 commit comments

Comments
 (0)