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

Commit 26f7e54

Browse files
authored
Merge pull request #58 from paluh/master
Rename replaceChild arguments to reflect function logic
2 parents dbeab2e + 06eeb5a commit 26f7e54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DOM/Node/Node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ exports.appendChild = function (node) {
147147
};
148148
};
149149

150-
exports.replaceChild = function (oldChild) {
151-
return function (newChild) {
150+
exports.replaceChild = function (newChild) {
151+
return function (oldChild) {
152152
return function (parent) {
153153
return function () {
154-
return parent.replaceChild(oldChild, newChild);
154+
return parent.replaceChild(newChild, oldChild);
155155
};
156156
};
157157
};

0 commit comments

Comments
 (0)