Skip to content

Commit

Permalink
Avoid global var leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
tiff committed Aug 30, 2012
1 parent 9ae7dc9 commit 6068542
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dom/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ wysihtml5.dom.parse = (function() {
var oldNodeType = oldNode.nodeType,
oldChilds = oldNode.childNodes,
oldChildsLength = oldChilds.length,
newNode,
method = NODE_TYPE_MAPPING[oldNodeType],
i = 0;
i = 0,
newNode,
newChild;

newNode = method && method(oldNode);

Expand Down

0 comments on commit 6068542

Please sign in to comment.