Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
Merged
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
61 changes: 20 additions & 41 deletions src/DOM/HTML/HTMLElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,6 @@ exports.setHidden = function (hidden) {

// ----------------------------------------------------------------------------

exports.click = function (elt) {
return function () {
return elt.click();
};
};

// ----------------------------------------------------------------------------

exports.tabIndex = function (elt) {
return function () {
return elt.tabIndex;
Expand All @@ -118,39 +110,6 @@ exports.setTabIndex = function (tabIndex) {

// ----------------------------------------------------------------------------

exports.hidden = function (elt) {
return function () {
return elt.hidden;
};
};

exports.setHidden = function (hidden) {
return function (elt) {
return function () {
elt.hidden = hidden;
return {};
};
};
};

// ----------------------------------------------------------------------------

exports.focus = function (elt) {
return function () {
return elt.focus();
};
};

// ----------------------------------------------------------------------------

exports.blur = function (elt) {
return function () {
return elt.blur();
};
};

// ----------------------------------------------------------------------------

exports.draggable = function (elt) {
return function () {
return elt.draggable;
Expand Down Expand Up @@ -206,6 +165,26 @@ exports.setSpellcheck = function (spellcheck) {
};
};

// ----------------------------------------------------------------------------

exports.click = function (elt) {
return function () {
return elt.click();
};
};

exports.focus = function (elt) {
return function () {
return elt.focus();
};
};

exports.blur = function (elt) {
return function () {
return elt.blur();
};
};

// - CSSOM ---------------------------------------------------------------------

exports.getBoundingClientRect = function (el) {
Expand Down