refactor(all): make all method return a promise

This commit is contained in:
Manu Mtz.-Almeida
2018-08-28 18:16:10 +02:00
parent 5d32115684
commit 1d46973785
53 changed files with 304 additions and 439 deletions

View File

@ -97,7 +97,7 @@ export class Refresher {
const contentEl = this.el.closest('ion-content');
if (contentEl) {
await contentEl.componentOnReady();
this.scrollEl = contentEl.getScrollElement();
this.scrollEl = await contentEl.getScrollElement();
} else {
console.error('ion-refresher did not attach, make sure the parent is an ion-content.');
}
@ -156,7 +156,7 @@ export class Refresher {
*/
@Method()
getProgress() {
return this.progress;
return Promise.resolve(this.progress);
}
private canStart(): boolean {