mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
refactor(all): make all method return a promise
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user