Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Update HTMLElement FFI code to match purs definitions
Browse files Browse the repository at this point in the history
Removes the duplicate `hidden` / `isHidden` and orders the defs in the
FFI file the same as those in the purescript module.
  • Loading branch information
garyb committed Sep 23, 2017
1 parent a3b4e60 commit 9f61c05
Showing 1 changed file with 20 additions and 41 deletions.
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

0 comments on commit 9f61c05

Please sign in to comment.