This commit is contained in:
Dan Bucholtz
2017-08-28 13:25:43 -05:00
parent e0a29db3bb
commit 11385ea7f1
9 changed files with 237 additions and 25 deletions

View File

@ -160,7 +160,7 @@ export function swipeShouldReset(isResetDirection: boolean, isMovingFast: boolea
return (!isMovingFast && isOnResetZone) || (isResetDirection && isMovingFast);
}
export function isReady(element: HTMLElement) {
export function isReady(element: Element): Promise<any> {
return new Promise((resolve) => {
(element as StencilElement).componentOnReady((elm: HTMLElement) => {
resolve(elm);