Skip to content

Commit

Permalink
fix(scroll): correctly resolve promise
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Dec 6, 2016
1 parent 3b612d2 commit c6fbb9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/util/scroll-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,8 @@ export class ScrollView {
if (done === undefined) {
// only create a promise if a done callback wasn't provided
// done can be a null, which avoids any functions
promise = new Promise((res, rej) => {
done = res;
done = rej;
promise = new Promise(resolve => {
done = resolve;
});
}

Expand Down

0 comments on commit c6fbb9c

Please sign in to comment.