Sfoglia il codice sorgente

Object3D: Clean up.

Mr.doob 8 anni fa
parent
commit
5d39a4d183
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/core/Object3D.js

+ 3 - 3
src/core/Object3D.js

@@ -93,8 +93,8 @@ function Object3D() {
 
 
 	this.userData = {};
 	this.userData = {};
 
 
-	this.onBeforeRender = function(){};
-	this.onAfterRender = function(){};
+	this.onBeforeRender = function () {};
+	this.onAfterRender = function () {};
 
 
 }
 }
 
 
@@ -308,7 +308,7 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, {
 
 
 		}
 		}
 
 
-		if ( (object && object.isObject3D) ) {
+		if ( ( object && object.isObject3D ) ) {
 
 
 			if ( object.parent !== null ) {
 			if ( object.parent !== null ) {