Skip to content

Commit

Permalink
Updates incremental dom to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
mairatma committed Aug 31, 2016
1 parent 7fc01df commit 44d4258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/metal-incremental-dom/src/incremental-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@
return;
}

var nodeName = node.nodeName.toLowerCase();
var isElement = node instanceof Element;
var nodeName = isElement ? node.localName : node.nodeName;
var key = isElement ? node.getAttribute('key') : null;
var data = initData(node, nodeName, key);

Expand Down Expand Up @@ -568,7 +568,7 @@

if ('production' !== 'production') {}

if (node !== currentNode) {
if (node !== currentNode && node.parentNode) {
removeChild(currentParent, node, getData(currentParent).keyMap);
}

Expand Down

0 comments on commit 44d4258

Please sign in to comment.