Explorar el Código

Set save interval for new context.

John Zhou hace 6 años
padre
commit
068a402966
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      packages/docmanager/src/manager.ts

+ 4 - 1
packages/docmanager/src/manager.ts

@@ -473,7 +473,10 @@ export class DocumentManager implements IDisposable {
       modelDBFactory,
       setBusy: this._setBusy
     });
-    let handler = new SaveHandler({ context });
+    let handler = new SaveHandler({
+      context,
+      saveInterval: this.autosaveInterval
+    });
     Private.saveHandlerProperty.set(context, handler);
     context.ready.then(() => {
       if (this.autosave) {