From a878b87d6d74158d941aa23b0a4c8692f614fa0f Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 21 Dec 2014 01:08:12 -0800 Subject: [PATCH] GUAC-901: Name all functions. Declare local functions with var. --- .../src/main/webapp/app/touch/directives/guacTouchDrag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guacamole/src/main/webapp/app/touch/directives/guacTouchDrag.js b/guacamole/src/main/webapp/app/touch/directives/guacTouchDrag.js index c372714c8..7198fbc15 100644 --- a/guacamole/src/main/webapp/app/touch/directives/guacTouchDrag.js +++ b/guacamole/src/main/webapp/app/touch/directives/guacTouchDrag.js @@ -127,7 +127,7 @@ angular.module('touch').directive('guacTouchDrag', [function guacTouchDrag() { var deltaY = 0; // When there is exactly one touch, monitor the change in location - element.addEventListener("touchmove", function(e) { + element.addEventListener("touchmove", function dragTouchMove(e) { if (e.touches.length === 1) { e.stopPropagation(); @@ -165,7 +165,7 @@ angular.module('touch').directive('guacTouchDrag', [function guacTouchDrag() { }, false); // Reset monitoring and fire end event when done - element.addEventListener("touchend", function(e) { + element.addEventListener("touchend", function dragTouchEnd(e) { if (startX && startY && e.touches.length === 0) {