Need to bind intval this to callback within promise.

This commit is contained in:
mmcwilliams 2019-10-30 23:29:32 -04:00
parent 5b0d120275
commit eed8905f29
3 changed files with 5 additions and 5 deletions

View File

@ -454,7 +454,7 @@ class Intval {
this._storeState();
return resolve();
};
});
}.bind(this));
}
else {
return new Promise(function (resolve, reject) {
@ -463,7 +463,7 @@ class Intval {
this._storeState();
return resolve();
};
});
}.bind(this));
}
}
/**

File diff suppressed because one or more lines are too long

View File

@ -532,7 +532,7 @@ export default class Intval {
this._storeState()
return resolve()
}
})
}.bind(this))
} else {
return new Promise (function (resolve, reject) {
this._state.frame.cb = (len : number) => {
@ -540,7 +540,7 @@ export default class Intval {
this._storeState()
return resolve()
}
})
}.bind(this))
}
}