Skip to content

Commit

Permalink
fix replaceChild & removeDataSet
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jun 16, 2019
1 parent c6b5e19 commit 4945a16
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 13 deletions.
6 changes: 3 additions & 3 deletions packages/moon/dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1104,11 +1104,11 @@
break;

case "dataset":
delete element.dataset[key];
delete element.dataset[setKey];
break;

default:
element.style[key] = "";
element.style[setKey] = "";
}
}
}
Expand Down Expand Up @@ -1536,7 +1536,7 @@
case patchTypes.replaceNode:
{
// Replace an old element with a new one.
patch.elementParent.replaceChild(patch.elementOld, patch.elementNew);
patch.elementParent.replaceChild(patch.elementNew, patch.elementOld);
break;
}

Expand Down
Loading

0 comments on commit 4945a16

Please sign in to comment.