Skip to content

Commit 276078b

Browse files
Add clone for sub objects
1 parent 79dad08 commit 276078b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/view-engine/Component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Component {
154154

155155
_compileView(view = this.view, data = this.data, fileName = this.resolvePath(this.config.view)) {
156156
try {
157-
const tplsConfig = config.doT;
157+
const tplsConfig = Object.assign({}, config.doT);
158158
tplsConfig.varname = `${this.config.var || 'component'}, data, options, page, partial`;
159159
return doT.template(view, tplsConfig)(this, data, this.options, this._page, this.partial.bind(this));
160160
} catch (e) {

0 commit comments

Comments
 (0)