From 1dccaf093f5ca79dd38927424505fcd9f3948398 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 22 Oct 2015 16:17:52 -0400 Subject: [PATCH] EditorControls: Minor clean up. --- examples/js/controls/EditorControls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/js/controls/EditorControls.js b/examples/js/controls/EditorControls.js index 681bd2ffab..6fda0ca435 100644 --- a/examples/js/controls/EditorControls.js +++ b/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 ) { -- GitLab