Skip to content

Commit c6fbb9c

Browse files
committed
fix(scroll): correctly resolve promise
1 parent 3b612d2 commit c6fbb9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/util/scroll-view.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,8 @@ export class ScrollView {
391391
if (done === undefined) {
392392
// only create a promise if a done callback wasn't provided
393393
// done can be a null, which avoids any functions
394-
promise = new Promise((res, rej) => {
395-
done = res;
396-
done = rej;
394+
promise = new Promise(resolve => {
395+
done = resolve;
397396
});
398397
}
399398

0 commit comments

Comments
 (0)