提交 208dd891 编写于 作者: M Mr.doob

Object3D: Code clean up.

上级 d7757f56
......@@ -377,19 +377,19 @@ THREE.Object3D.prototype = {
getObjectById: function ( id, recursive ) {
return this.getObjectByProperty('id', id, recursive);
return this.getObjectByProperty( 'id', id, recursive );
},
getObjectByName: function ( name, recursive ) {
return this.getObjectByProperty('name', name, recursive);
return this.getObjectByProperty( 'name', name, recursive );
},
getObjectByProperty: function ( name, value, recursive ) {
if ( this[name] === value ) return this;
if ( this[ name ] === value ) return this;
for ( var i = 0, l = this.children.length; i < l; i ++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册