Просмотр исходного кода

simplify extend because we don't need it to be hierarchical.

Ben Houston 13 лет назад
Родитель
Сommit
c2ed32e7fa
1 измененных файлов с 1 добавлено и 11 удалено
  1. 1 11
      src/Three.js

+ 1 - 11
src/Three.js

@@ -48,19 +48,9 @@ String.prototype.trim = String.prototype.trim || function () {
 // based on http://stackoverflow.com/a/12317051
 THREE.extend = function ( target, other ) {
 
-	target = target || {};
-
 	for (var prop in other) {
 
-		if ( typeof other[prop] === 'object' ) {
-
-			target[prop] = THREE.extend( target[prop], other[prop] );
-
-		} else {
-
-			target[prop] = other[prop];
-
-		}
+		target[prop] = other[prop];
 
 	}
 

粤ICP备19079148号