mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
refactor(all): updating to newest stencil apis (#18578)
* chore(): update ionicons * refactor(all): updating to newest stencil apis * fix lint issues * more changes * moreee * fix treeshaking * fix config * fix checkbox * fix stuff * chore(): update ionicons * fix linting errors
This commit is contained in:
@ -7,9 +7,11 @@ interface HandlerRegister {
|
||||
handler: Handler;
|
||||
}
|
||||
|
||||
export function startHardwareBackButton(win: Window) {
|
||||
export function startHardwareBackButton() {
|
||||
const doc = document;
|
||||
|
||||
let busy = false;
|
||||
win.document.addEventListener('backbutton', () => {
|
||||
doc.addEventListener('backbutton', () => {
|
||||
if (busy) {
|
||||
return;
|
||||
}
|
||||
@ -23,7 +25,7 @@ export function startHardwareBackButton(win: Window) {
|
||||
}
|
||||
}
|
||||
});
|
||||
win.document.dispatchEvent(ev);
|
||||
doc.dispatchEvent(ev);
|
||||
|
||||
if (handlers.length > 0) {
|
||||
let selectedPriority = Number.MIN_SAFE_INTEGER;
|
||||
|
Reference in New Issue
Block a user