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:
Manu MA
2019-06-23 11:26:42 +02:00
committed by GitHub
parent 78e477b2a7
commit 34dfc3ce98
112 changed files with 1231 additions and 1235 deletions

View File

@ -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;