From c02a08c8d92b2ffe0c8cb201f3ba7e0e07f78986 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 13 Nov 2017 15:53:19 +0100 Subject: [PATCH] typos --- source/UI/js/Core/Element.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/UI/js/Core/Element.js b/source/UI/js/Core/Element.js index dab07178..5e1ca456 100644 --- a/source/UI/js/Core/Element.js +++ b/source/UI/js/Core/Element.js @@ -92,10 +92,10 @@ singleclicks and doubleclicks, since it will not fire for doubleclicks) * <*> Original event properties - touchend tochend + touchend touchend normalized version of touchend event * <*> Original event properties - touchmove tochmove + touchmove touchmove normalized version of touchmove event * <*> Original event properties touchstart touchstart @@ -194,7 +194,7 @@ function getTouchData(e) { var data = {}; - if (e.changedTouches && e.changedTouches.length) { + if (e && e.changedTouches && e.changedTouches.length) { data.clientX = e.changedTouches[0].clientX; data.clientY = e.changedTouches[0].clientY; } else { @@ -365,19 +365,19 @@ function onTouchend(e) { //var data = getTouchData(e.originalEvent); - var data = getTouchData(e; + var data = getTouchData(e); that.triggerEvent('touchend', Ox.extend(e, data)); } function onTouchmove(e) { //var data = getTouchData(e.originalEvent); - var data = getTouchData(e; + var data = getTouchData(e); that.triggerEvent('touchmove', Ox.extend(e, data)); } function onTouchstart(e) { //var data = getTouchData(e.originalEvent); - var data = getTouchData(e; + var data = getTouchData(e); that.triggerEvent('touchstart', Ox.extend(e, data)); }