提交 c2ed32e7 编写于 作者: B Ben Houston

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

上级 eded6834
......@@ -48,22 +48,12 @@ 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];
}
}
return target;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册