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;