浏览代码

EditorControls: Minor clean up.

Mr.doob 9 年之前
父节点
当前提交
1dccaf093f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/controls/EditorControls.js

+ 2 - 2
examples/js/controls/EditorControls.js

@@ -272,7 +272,7 @@ THREE.EditorControls = function ( object, domElement ) {
 		event.preventDefault();
 		event.stopPropagation();
 
-		var getClosest = function( touch, touches ) {
+		function getClosest( touch, touches ) {
 
 			var closest = touches[ 0 ];
 
@@ -284,7 +284,7 @@ THREE.EditorControls = function ( object, domElement ) {
 
 			return closest;
 
-		};
+		}
 
 		switch ( event.touches.length ) {