From c6fbb9c8ef5b1d96f0ad0c1d3888c2946849de03 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 6 Dec 2016 15:38:01 -0600 Subject: [PATCH] fix(scroll): correctly resolve promise --- src/util/scroll-view.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util/scroll-view.ts b/src/util/scroll-view.ts index c327ee8794e..0b61ce1dd3d 100644 --- a/src/util/scroll-view.ts +++ b/src/util/scroll-view.ts @@ -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; }); }