sunag 7 năm trước cách đây
mục cha
commit
0dc1aeff54
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;