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

Commit fe38329

Browse files
committed
Fix FFI of history-related functions.
1 parent fec2d4b commit fe38329

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/DOM/HTML/History.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ exports.forward = function(history) {
1010
return history.forward();
1111
};
1212
};
13-
exports.go = function(history) {
14-
return function(delta) {
13+
exports.go = function(delta) {
14+
return function(history) {
1515
return function() {
1616
return history.go(delta);
1717
};
1818
};
1919
};
20-
exports.pushState = function(history) {
21-
return function(a) {
22-
return function(docTitle) {
23-
return function(url) {
20+
exports.pushState = function(a) {
21+
return function(docTitle) {
22+
return function(url) {
23+
return function(history) {
2424
return function() {
2525
return history.pushState(a, docTitle, url);
2626
};
2727
};
2828
};
2929
};
3030
};
31-
exports.replaceState = function(history) {
32-
return function(a) {
33-
return function(docTitle) {
34-
return function(url) {
31+
exports.replaceState = function(a) {
32+
return function(docTitle) {
33+
return function(url) {
34+
return function(history) {
3535
return function() {
3636
return history.replaceState(a, docTitle, url);
3737
};

0 commit comments

Comments
 (0)