fix(scroll): correctly resolve promise

This commit is contained in:
Adam Bradley
2016-12-06 15:38:01 -06:00
parent 3b612d2bc0
commit c6fbb9c8ef

View File

@@ -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;
});
}