Skip to content

Commit ac2d73f

Browse files
authored
Merge pull request #26 from mhmdanas/remove-return-empty-obj
Remove `return {}` from FFI functions
2 parents 0358453 + 3167b91 commit ac2d73f

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/Web/DOM/Element.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ exports.setId = function (id) {
2121
return function (node) {
2222
return function () {
2323
node.id = id;
24-
return {};
2524
};
2625
};
2726
};
@@ -42,7 +41,6 @@ exports.setClassName = function (className) {
4241
return function (node) {
4342
return function () {
4443
node.className = className;
45-
return {};
4644
};
4745
};
4846
};
@@ -78,7 +76,6 @@ exports.setAttribute = function (name) {
7876
return function (element) {
7977
return function () {
8078
element.setAttribute(name, value);
81-
return {};
8279
};
8380
};
8481
};
@@ -104,7 +101,6 @@ exports.removeAttribute = function (name) {
104101
return function (element) {
105102
return function () {
106103
element.removeAttribute(name);
107-
return {};
108104
};
109105
};
110106
};
@@ -121,7 +117,6 @@ exports.setScrollTop = function (scrollTop) {
121117
return function (node) {
122118
return function () {
123119
node.scrollTop = scrollTop;
124-
return {};
125120
};
126121
};
127122
};
@@ -136,7 +131,6 @@ exports.setScrollLeft = function (scrollLeft) {
136131
return function (node) {
137132
return function () {
138133
node.scrollLeft = scrollLeft;
139-
return {};
140134
};
141135
};
142136
};

src/Web/DOM/Node.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ exports.setNodeValue = function (value) {
4646
return function (node) {
4747
return function () {
4848
node.nodeValue = value;
49-
return {};
5049
};
5150
};
5251
};
@@ -57,15 +56,13 @@ exports.setTextContent = function (value) {
5756
return function (node) {
5857
return function () {
5958
node.textContent = value;
60-
return {};
6159
};
6260
};
6361
};
6462

6563
exports.normalize = function (node) {
6664
return function () {
6765
node.normalize();
68-
return {};
6966
};
7067
};
7168

0 commit comments

Comments
 (0)