Skip to content

Commit 1892930

Browse files
authored
Merge pull request #35 from mhmdanas/remove-return-empty-obj
Remove `return {}` from FFI functions
2 parents 5a19c76 + 73ed5e2 commit 1892930

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

src/Web/HTML/HTMLDocument.js

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ exports.setTitle = function (title) {
4646
return function (doc) {
4747
return function () {
4848
doc.title = title;
49-
return {};
5049
};
5150
};
5251
};

src/Web/HTML/HTMLElement.js

-9
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ exports.setTitle = function (title) {
2121
return function (elt) {
2222
return function () {
2323
elt.title = title;
24-
return {};
2524
};
2625
};
2726
};
@@ -38,7 +37,6 @@ exports.setLang = function (lang) {
3837
return function (elt) {
3938
return function () {
4039
elt.lang = lang;
41-
return {};
4240
};
4341
};
4442
};
@@ -55,7 +53,6 @@ exports.setDir = function (dir) {
5553
return function (elt) {
5654
return function () {
5755
elt.dir = dir;
58-
return {};
5956
};
6057
};
6158
};
@@ -72,7 +69,6 @@ exports.setClassName = function (className) {
7269
return function (elt) {
7370
return function () {
7471
elt.className = className;
75-
return {};
7672
};
7773
};
7874
};
@@ -95,7 +91,6 @@ exports.setHidden = function (hidden) {
9591
return function (elt) {
9692
return function () {
9793
elt.hidden = hidden;
98-
return {};
9994
};
10095
};
10196
};
@@ -112,7 +107,6 @@ exports.setTabIndex = function (tabIndex) {
112107
return function (elt) {
113108
return function () {
114109
elt.tabIndex = tabIndex;
115-
return {};
116110
};
117111
};
118112
};
@@ -129,7 +123,6 @@ exports.setDraggable = function (draggable) {
129123
return function (elt) {
130124
return function () {
131125
elt.draggable = draggable;
132-
return {};
133126
};
134127
};
135128
};
@@ -146,7 +139,6 @@ exports.setContentEditable = function (contentEditable) {
146139
return function (elt) {
147140
return function () {
148141
elt.contentEditable = contentEditable;
149-
return {};
150142
};
151143
};
152144
};
@@ -169,7 +161,6 @@ exports.setSpellcheck = function (spellcheck) {
169161
return function (elt) {
170162
return function () {
171163
elt.spellcheck = spellcheck;
172-
return {};
173164
};
174165
};
175166
};

src/Web/HTML/Window.js

-8
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ exports.alert = function (str) {
4040
return function (window) {
4141
return function () {
4242
window.alert(str);
43-
return {};
4443
};
4544
};
4645
};
@@ -58,7 +57,6 @@ exports.moveBy = function (xDelta) {
5857
return function (window) {
5958
return function () {
6059
window.moveBy(xDelta, yDelta);
61-
return {};
6260
};
6361
};
6462
};
@@ -69,7 +67,6 @@ exports.moveTo = function (width) {
6967
return function (window) {
7068
return function () {
7169
window.moveTo(width, height);
72-
return {};
7370
};
7471
};
7572
};
@@ -102,7 +99,6 @@ exports.outerWidth = function (window) {
10299
exports.print = function (window) {
103100
return function () {
104101
window.print();
105-
return {};
106102
};
107103
};
108104

@@ -121,7 +117,6 @@ exports.resizeBy = function (xDelta) {
121117
return function (window) {
122118
return function () {
123119
window.resizeBy(xDelta, yDelta);
124-
return {};
125120
};
126121
};
127122
};
@@ -132,7 +127,6 @@ exports.resizeTo = function (width) {
132127
return function (window) {
133128
return function () {
134129
window.resizeTo(width, height);
135-
return {};
136130
};
137131
};
138132
};
@@ -155,7 +149,6 @@ exports.scroll = function (xCoord) {
155149
return function (window) {
156150
return function () {
157151
window.scroll(xCoord, yCoord);
158-
return {};
159152
};
160153
};
161154
};
@@ -166,7 +159,6 @@ exports.scrollBy = function (xCoord) {
166159
return function (window) {
167160
return function () {
168161
window.scrollBy(xCoord, yCoord);
169-
return {};
170162
};
171163
};
172164
};

0 commit comments

Comments
 (0)