feat(DomController): add DomController provider using stencil queue

This commit is contained in:
Adam Bradley
2018-04-12 11:12:12 -05:00
parent b1778102fc
commit bceece7bc1
12 changed files with 489 additions and 1719 deletions

View File

@ -9,7 +9,9 @@ declare const Context: any;
// queue used to coordinate DOM reads and
// write in order to avoid layout thrashing
Ionic.queue = Context.queue;
Object.defineProperty(Ionic, 'queue', {
get: () => Context.queue
});
if (!Context.platforms) {
Context.platforms = detectPlatforms(window.location.href, window.navigator.userAgent, PLATFORM_CONFIGS, 'core');