浏览代码

fix context

sunag 7 年之前
父节点
当前提交
a623dc6fed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/nodes/core/NodeBuilder.js

+ 1 - 1
examples/js/nodes/core/NodeBuilder.js

@@ -275,7 +275,7 @@ NodeBuilder.prototype = {
 
 	addContext: function ( context ) {
 
-		this.context = Object.assign( this.context || {}, context || {} );
+		this.context = Object.assign( {}, this.context || {}, context || {} );
 		this.contexts.push( this.context );
 
 		return this;