Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Rename replaceChild arguments to reflect function logic
Browse files Browse the repository at this point in the history
  • Loading branch information
paluh committed Sep 12, 2016
1 parent 319bf89 commit 06eeb5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DOM/Node/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ exports.appendChild = function (node) {
};
};

exports.replaceChild = function (oldChild) {
return function (newChild) {
exports.replaceChild = function (newChild) {
return function (oldChild) {
return function (parent) {
return function () {
return parent.replaceChild(oldChild, newChild);
return parent.replaceChild(newChild, oldChild);
};
};
};
Expand Down

0 comments on commit 06eeb5a

Please sign in to comment.