From 06eeb5a6b221babb7ea01bbb0bc476ca0e0c3fe3 Mon Sep 17 00:00:00 2001 From: Tomasz Rybarczyk Date: Mon, 12 Sep 2016 23:43:12 +0200 Subject: [PATCH] Rename replaceChild arguments to reflect function logic --- src/DOM/Node/Node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DOM/Node/Node.js b/src/DOM/Node/Node.js index c5cc131..8afbbe4 100644 --- a/src/DOM/Node/Node.js +++ b/src/DOM/Node/Node.js @@ -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); }; }; };