浏览代码

always empty options.doc and options.win

Gildas 7 年之前
父节点
当前提交
bb05f745f2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/single-file/single-file-core.js

+ 2 - 2
lib/single-file/single-file-core.js

@@ -177,9 +177,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			this.pendingPromises = this.executeStage(REPLACE_DATA_STAGE);
 			if (this.options.doc) {
 				docUtil.postProcessDoc(this.options.doc, this.options);
-				this.options.doc = null;
-				this.options.win = null;
 			}
+			this.options.doc = null;
+			this.options.win = null;
 		}
 
 		async run() {