Fixing 'this' for scheduled timeout
This commit is contained in:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -907,7 +907,7 @@ export default class BaseAPI {
|
|||||||
*/
|
*/
|
||||||
scheduleCommit(when: number) {
|
scheduleCommit(when: number) {
|
||||||
this.clearScheduledCommit();
|
this.clearScheduledCommit();
|
||||||
this.#timeout = setTimeout(this.scheduledCallback, when);
|
this.#timeout = setTimeout(this.scheduledCallback.bind(this), when);
|
||||||
this.apiLog('scheduleCommit', '', 'scheduled', global_constants.LOG_LEVEL_DEBUG);
|
this.apiLog('scheduleCommit', '', 'scheduled', global_constants.LOG_LEVEL_DEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user