chore(package): update stencil

This commit is contained in:
Adam Bradley
2018-05-30 12:01:44 -05:00
parent 3cdc696847
commit 128ed60510
4 changed files with 2036 additions and 2042 deletions

4067
core/package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -26,7 +26,7 @@
"ionicons": "^4.1.2"
},
"devDependencies": {
"@stencil/core": "^0.9.4",
"@stencil/core": "^0.9.6",
"@stencil/dev-server": "latest",
"@stencil/sass": "latest",
"@stencil/utils": "latest",

View File

@@ -13,9 +13,12 @@ declare global {
}
namespace JSXElements {}
interface HTMLElement {
componentOnReady?: () => Promise<this | null>;
}
interface HTMLStencilElement extends HTMLElement {
componentOnReady(): Promise<this>;
componentOnReady(done: (ele?: this) => void): void;
forceUpdate(): void;
}

View File

@@ -280,8 +280,8 @@ export class VirtualScroll {
this.setCellHeight(cell, height);
}
};
if ('componentOnReady' in node) {
node.componentOnReady(update);
if (node && node.componentOnReady) {
node.componentOnReady().then(update);
} else {
update();
}