Parcourir la source

Object3D: Code clean up.

Mr.doob il y a 10 ans
Parent
commit
208dd891f8
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/core/Object3D.js

+ 4 - 4
src/core/Object3D.js

@@ -377,19 +377,19 @@ THREE.Object3D.prototype = {
 
 
 	getObjectById: function ( id, recursive ) {
 	getObjectById: function ( id, recursive ) {
 
 
-		return this.getObjectByProperty('id', id, recursive);
+		return this.getObjectByProperty( 'id', id, recursive );
 
 
 	},
 	},
 
 
 	getObjectByName: function ( name, recursive ) {
 	getObjectByName: function ( name, recursive ) {
 
 
-		return this.getObjectByProperty('name', name, recursive);
+		return this.getObjectByProperty( 'name', name, recursive );
 
 
 	},
 	},
-	
+
 	getObjectByProperty: function ( name, value, 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 ++ ) {
 		for ( var i = 0, l = this.children.length; i < l; i ++ ) {