Adding ability to set empty base element for loading from JSON
This commit is contained in:
@@ -806,7 +806,7 @@ export default class BaseAPI {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CMIElement = CMIElement || 'cmi';
|
CMIElement = CMIElement !== undefined ? CMIElement : 'cmi';
|
||||||
|
|
||||||
this.startingData = json;
|
this.startingData = json;
|
||||||
|
|
||||||
@@ -906,7 +906,8 @@ export default class BaseAPI {
|
|||||||
*/
|
*/
|
||||||
scheduleCommit(when: number) {
|
scheduleCommit(when: number) {
|
||||||
this.#timeout = new ScheduledCommit(this, when);
|
this.#timeout = new ScheduledCommit(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