[improvement] add closeOnPopstate mixin (#3708)

This commit is contained in:
neverland
2019-07-01 16:29:47 +08:00
committed by GitHub
parent 3eb802a689
commit 2df51f5aef
4 changed files with 52 additions and 26 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ if (!isServer) {
}
export function on(
target: HTMLElement | Document,
target: HTMLElement | Document | Window,
event: string,
handler: EventHandler,
passive = false
@@ -35,7 +35,7 @@ export function on(
}
export function off(
target: HTMLElement | Document,
target: HTMLElement | Document | Window,
event: string,
handler: EventHandler
) {