Skip to content

No empty object return #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions src/Web/CSSOM/CSSStyleDeclaration.js
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
"use strict";

exports.cssText = function(style) {
return function() {
exports.cssText = function (style) {
return function () {
return style.cssText;
};
};

exports.setCssText = function(style) {
return function(newCSS) {
return function() {
exports.setCssText = function (style) {
return function (newCSS) {
return function () {
style.cssText = newCSS;
};
};
};

exports.length = function(style) {
return function() {
exports.length = function (style) {
return function () {
return style.length;
};
};

exports.getPropertyPriority = function(style) {
return function(propName) {
return function() {
exports.getPropertyPriority = function (style) {
return function (propName) {
return function () {
return style.getPropertyPriority(propName);
};
};
};

exports.getPropertyValue = function(style) {
return function(propName) {
return function() {
exports.getPropertyValue = function (style) {
return function (propName) {
return function () {
return style.getPropertyValue(propName);
};
};
};

exports.removeProperty = function(style) {
return function(propName) {
return function() {
exports.removeProperty = function (style) {
return function (propName) {
return function () {
style.removeProperty(propName);
};
};
};

exports.setProperty = function(style) {
return function(propName) {
return function(propValue) {
return function() {
exports.setProperty = function (style) {
return function (propName) {
return function (propValue) {
return function () {
style.setProperty(propName, propValue);
};
};
Expand Down
15 changes: 7 additions & 8 deletions src/Web/CSSOM/CSSStyleSheet.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

var getProp = function(name) {
return function(sheet) {
var getProp = function (name) {
return function (sheet) {
return sheet[name];
};
};
Expand All @@ -13,17 +13,16 @@ exports._parentStyleSheet = getProp("parentStyleSheet");
exports._title = getProp("title");
exports._type = getProp("type");

exports.setDisabled = function(bool) {
return function(sheet) {
return function() {
exports.setDisabled = function (bool) {
return function (sheet) {
return function () {
sheet.disabled = bool;
return {};
};
};
};

exports.toggleDisabled = function(sheet) {
return function() {
exports.toggleDisabled = function (sheet) {
return function () {
var bool = !sheet.disabled;
sheet.disabled = bool;
return bool;
Expand Down
4 changes: 2 additions & 2 deletions src/Web/CSSOM/ElementCSSInlineStyle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

exports.style = function(el) {
return function() {
exports.style = function (el) {
return function () {
return el.style;
};
};
6 changes: 3 additions & 3 deletions src/Web/CSSOM/StyleSheetList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ exports.toArray = function (list) {
};
};

exports._item = function(index) {
return function(list) {
return function() {
exports._item = function (index) {
return function (list) {
return function () {
return list.item(index);
};
};
Expand Down