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

Commit a3a6e0c

Browse files
authored
Merge pull request #70 from purescript-contrib/hashchange
Add HashChangeEvent accessors
2 parents ac29eaa + 357ba2b commit a3a6e0c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/DOM/HTML/Event/HashChangeEvent.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"use strict";
2+
3+
exports.oldURL = function (e) {
4+
return e.oldURL;
5+
};
6+
7+
exports.newURL = function (e) {
8+
return e.newURL;
9+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module DOM.HTML.Event.HashChangeEvent where
2+
3+
import DOM.HTML.Event.Types (HashChangeEvent)
4+
5+
foreign import oldURL :: HashChangeEvent -> String
6+
foreign import newURL :: HashChangeEvent -> String

0 commit comments

Comments
 (0)