소스 검색

Merge pull request #14710 from arodic/handleEvent_remove

Removed dead code (handleEvent) from controls.
Mr.doob 7 년 전
부모
커밋
d059470243
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();