Преглед на файлове

Removed dead code (handleEvent) from controls.

Aki Rodic преди 7 години
родител
ревизия
4e4b491ecc
променени са 3 файла, в които са добавени 0 реда и са изтрити 30 реда
  1. 0 10
      examples/js/controls/FlyControls.js
  2. 0 10
      examples/js/controls/OrthographicTrackballControls.js
  3. 0 10
      examples/js/controls/TrackballControls.js

+ 0 - 10
examples/js/controls/FlyControls.js

@@ -29,16 +29,6 @@ THREE.FlyControls = function ( object, domElement ) {
 	this.moveVector = new THREE.Vector3( 0, 0, 0 );
 	this.rotationVector = new THREE.Vector3( 0, 0, 0 );
 
-	this.handleEvent = function ( event ) {
-
-		if ( typeof this[ event.type ] == 'function' ) {
-
-			this[ event.type ]( event );
-
-		}
-
-	};
-
 	this.keydown = function ( event ) {
 
 		if ( event.altKey ) {

+ 0 - 10
examples/js/controls/OrthographicTrackballControls.js

@@ -109,16 +109,6 @@ THREE.OrthographicTrackballControls = function ( object, domElement ) {
 
 	};
 
-	this.handleEvent = function ( event ) {
-
-		if ( typeof this[ event.type ] == 'function' ) {
-
-			this[ event.type ]( event );
-
-		}
-
-	};
-
 	var getMouseOnScreen = ( function () {
 
 		var vector = new THREE.Vector2();

+ 0 - 10
examples/js/controls/TrackballControls.js

@@ -101,16 +101,6 @@ THREE.TrackballControls = function ( object, domElement ) {
 
 	};
 
-	this.handleEvent = function ( event ) {
-
-		if ( typeof this[ event.type ] == 'function' ) {
-
-			this[ event.type ]( event );
-
-		}
-
-	};
-
 	var getMouseOnScreen = ( function () {
 
 		var vector = new THREE.Vector2();