Add timeout for polyfilled CustomElements (webOS 1.2)

This commit is contained in:
Dmitry Lyzo 2020-09-01 23:52:27 +03:00
parent f7d0b94916
commit eccaad366e

View File

@ -82,7 +82,8 @@ import 'css!components/viewManager/viewContainer';
} }
allPages[pageIndex] = view; allPages[pageIndex] = view;
setControllerClass(view, options).then(() => { // Timeout for polyfilled CustomElements (webOS 1.2)
setControllerClass(view, options).then(() => new Promise((resolve) => setTimeout(resolve, 0))).then(() => {
if (onBeforeChange) { if (onBeforeChange) {
onBeforeChange(view, false, options); onBeforeChange(view, false, options);
} }