Browse Source

Fix travis build

Mugen87 6 years ago
parent
commit
93fa18d9ce
2 changed files with 6 additions and 2 deletions
  1. 3 1
      src/renderers/WebGLRenderer.js
  2. 3 1
      src/scenes/Scene.js

+ 3 - 1
src/renderers/WebGLRenderer.js

@@ -2588,7 +2588,9 @@ function WebGLRenderer( parameters ) {
 	};
 	};
 
 
 	if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
 	if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
-		__THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) );
+
+		__THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) ); // eslint-disable-line no-undef
+
 	}
 	}
 
 
 }
 }

+ 3 - 1
src/scenes/Scene.js

@@ -17,7 +17,9 @@ function Scene() {
 	this.autoUpdate = true; // checked by the renderer
 	this.autoUpdate = true; // checked by the renderer
 
 
 	if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
 	if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) {
-		__THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) );
+
+		__THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) ); // eslint-disable-line no-undef
+
 	}
 	}
 
 
 }
 }