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

Commit 319bf89

Browse files
authored
Merge pull request #57 from purescript-contrib/56
Fix FFI argument order for HTMLTableSectionElement
2 parents e3240c8 + 38cd7d5 commit 319bf89

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/DOM/HTML/HTMLTableElement.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ exports.rows = function (table) {
120120

121121
// ----------------------------------------------------------------------------
122122

123-
exports["insertRow'"] = function (table) {
124-
return function (index) {
123+
exports["insertRow'"] = function (index) {
124+
return function (table) {
125125
return function () {
126126
return table.insertRow(index);
127127
};
@@ -130,8 +130,8 @@ exports["insertRow'"] = function (table) {
130130

131131
// ----------------------------------------------------------------------------
132132

133-
exports.deleteRow = function (table) {
134-
return function (index) {
133+
exports.deleteRow = function (index) {
134+
return function (table) {
135135
return function () {
136136
table.deleteRow(index);
137137
};

src/DOM/HTML/HTMLTableSectionElement.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ exports.rows = function (section) {
88

99
// ----------------------------------------------------------------------------
1010

11-
exports["insertRow'"] = function (section) {
12-
return function (index) {
11+
exports["insertRow'"] = function (index) {
12+
return function (section) {
1313
return function () {
1414
return section.insertRow(index);
1515
};
@@ -18,8 +18,8 @@ exports["insertRow'"] = function (section) {
1818

1919
// ----------------------------------------------------------------------------
2020

21-
exports.deleteRow = function (section) {
22-
return function (index) {
21+
exports.deleteRow = function (index) {
22+
return function (section) {
2323
return function () {
2424
section.deleteRow(index);
2525
};

0 commit comments

Comments
 (0)