소스 검색

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;