Skip to content

Commit 4eb2e7f

Browse files
No empty object return (#8)
1 parent 29c736f commit 4eb2e7f

File tree

4 files changed

+32
-33
lines changed

4 files changed

+32
-33
lines changed

src/Web/CSSOM/CSSStyleDeclaration.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
"use strict";
22

3-
exports.cssText = function(style) {
4-
return function() {
3+
exports.cssText = function (style) {
4+
return function () {
55
return style.cssText;
66
};
77
};
88

9-
exports.setCssText = function(style) {
10-
return function(newCSS) {
11-
return function() {
9+
exports.setCssText = function (style) {
10+
return function (newCSS) {
11+
return function () {
1212
style.cssText = newCSS;
1313
};
1414
};
1515
};
1616

17-
exports.length = function(style) {
18-
return function() {
17+
exports.length = function (style) {
18+
return function () {
1919
return style.length;
2020
};
2121
};
2222

23-
exports.getPropertyPriority = function(style) {
24-
return function(propName) {
25-
return function() {
23+
exports.getPropertyPriority = function (style) {
24+
return function (propName) {
25+
return function () {
2626
return style.getPropertyPriority(propName);
2727
};
2828
};
2929
};
3030

31-
exports.getPropertyValue = function(style) {
32-
return function(propName) {
33-
return function() {
31+
exports.getPropertyValue = function (style) {
32+
return function (propName) {
33+
return function () {
3434
return style.getPropertyValue(propName);
3535
};
3636
};
3737
};
3838

39-
exports.removeProperty = function(style) {
40-
return function(propName) {
41-
return function() {
39+
exports.removeProperty = function (style) {
40+
return function (propName) {
41+
return function () {
4242
style.removeProperty(propName);
4343
};
4444
};
4545
};
4646

47-
exports.setProperty = function(style) {
48-
return function(propName) {
49-
return function(propValue) {
50-
return function() {
47+
exports.setProperty = function (style) {
48+
return function (propName) {
49+
return function (propValue) {
50+
return function () {
5151
style.setProperty(propName, propValue);
5252
};
5353
};

src/Web/CSSOM/CSSStyleSheet.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

3-
var getProp = function(name) {
4-
return function(sheet) {
3+
var getProp = function (name) {
4+
return function (sheet) {
55
return sheet[name];
66
};
77
};
@@ -13,17 +13,16 @@ exports._parentStyleSheet = getProp("parentStyleSheet");
1313
exports._title = getProp("title");
1414
exports._type = getProp("type");
1515

16-
exports.setDisabled = function(bool) {
17-
return function(sheet) {
18-
return function() {
16+
exports.setDisabled = function (bool) {
17+
return function (sheet) {
18+
return function () {
1919
sheet.disabled = bool;
20-
return {};
2120
};
2221
};
2322
};
2423

25-
exports.toggleDisabled = function(sheet) {
26-
return function() {
24+
exports.toggleDisabled = function (sheet) {
25+
return function () {
2726
var bool = !sheet.disabled;
2827
sheet.disabled = bool;
2928
return bool;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22

3-
exports.style = function(el) {
4-
return function() {
3+
exports.style = function (el) {
4+
return function () {
55
return el.style;
66
};
77
};

src/Web/CSSOM/StyleSheetList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ exports.toArray = function (list) {
1212
};
1313
};
1414

15-
exports._item = function(index) {
16-
return function(list) {
17-
return function() {
15+
exports._item = function (index) {
16+
return function (list) {
17+
return function () {
1818
return list.item(index);
1919
};
2020
};

0 commit comments

Comments
 (0)