File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -1762,7 +1762,7 @@ class HTMLFrameSetElement extends HTMLElement {
1762
1762
var onoffline : js.Function1 [Event , _] = ???
1763
1763
var border : String = ???
1764
1764
var onunload : js.Function1 [Event , _] = ???
1765
- var onhashchange : js.Function1 [Event , _] = ???
1765
+ var onhashchange : js.Function1 [HashChangeEvent , _] = ???
1766
1766
var onload : js.Function1 [Event , _] = ???
1767
1767
var onbeforeunload : js.Function1 [BeforeUnloadEvent , _] = ???
1768
1768
var onstorage : js.Function1 [StorageEvent , _] = ???
Original file line number Diff line number Diff line change @@ -1115,6 +1115,29 @@ trait ModifierKeyEvent extends js.Object {
1115
1115
def shiftKey : Boolean = ???
1116
1116
}
1117
1117
1118
+ /**
1119
+ * The hashchange event is fired when the fragment identifier of the URL has
1120
+ * changed (the part of the URL that follows the # symbol, including the #
1121
+ * symbol).
1122
+ *
1123
+ * MDN
1124
+ */
1125
+ trait HashChangeEvent extends Event {
1126
+ /**
1127
+ * The new URL to which the window is navigating.
1128
+ *
1129
+ * MDN
1130
+ */
1131
+ def newURL : String = ???
1132
+
1133
+ /**
1134
+ * The previous URL from which the window was navigated.
1135
+ *
1136
+ * MDN
1137
+ */
1138
+ def oldURL : String = ???
1139
+ }
1140
+
1118
1141
/**
1119
1142
* The DOM MouseEvent interface represents events that occur due to the user
1120
1143
* interacting with a pointing device (such as a mouse).
@@ -1871,7 +1894,7 @@ class Window extends EventTarget with WindowLocalStorage with WindowSessionStora
1871
1894
*
1872
1895
* MDN
1873
1896
*/
1874
- var onhashchange : js.Function1 [Event , _] = ???
1897
+ var onhashchange : js.Function1 [HashChangeEvent , _] = ???
1875
1898
/**
1876
1899
* The unload event is raised when the window is unloading its content and resources.
1877
1900
* The resources removal is processed after the unload event occurs.
You can’t perform that action at this time.
0 commit comments