Преглед изворни кода

Add missing semicolon, remove unnecessary comma and remove unnecessary return statement in non returning function in MouseControls

Tristan Valcke пре 8 година
родитељ
комит
187e42fdbf
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      examples/js/controls/MouseControls.js

+ 2 - 3
examples/js/controls/MouseControls.js

@@ -36,7 +36,7 @@ THREE.MouseControls = function ( object ) {
 
 	this.orientation = {
 		x: 0,
-		y: 0,
+		y: 0
 	};
 
 	this.update = function() {
@@ -46,7 +46,6 @@ THREE.MouseControls = function ( object ) {
 		mouseQuat.x.setFromAxisAngle( xVector, this.orientation.x );
 		mouseQuat.y.setFromAxisAngle( yVector, this.orientation.y );
 		object.quaternion.copy( mouseQuat.y ).multiply( mouseQuat.x );
-		return;
 
 	};
 
@@ -54,7 +53,7 @@ THREE.MouseControls = function ( object ) {
 
 		document.removeEventListener( 'mousemove', onMouseMove, false );
 
-	}
+	};
 
 	document.addEventListener( 'mousemove', onMouseMove, false );