From 349fb4a962f77695135f351da566d47da39ff65c Mon Sep 17 00:00:00 2001 From: Priyansh Shah Date: Fri, 22 Feb 2013 12:20:13 -0500 Subject: [PATCH 1/2] Fixing Typo and extra space on elementTouchEvent --- api/html5_touch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/html5_touch.js b/api/html5_touch.js index f8d822bd4e..089131f636 100644 --- a/api/html5_touch.js +++ b/api/html5_touch.js @@ -345,7 +345,7 @@ ctrlKey,altKey,shiftKey,metaKey,touches,targetTouches,changedTouches) { * var img = document.createElement('img'); * img.ontouchstart=function(e) { * -* for(var i = 0; I < e. touches.length; i++) +* for(var i = 0; i < e.touches.length; i++) * { * var touch = touches[i]; * @@ -356,7 +356,7 @@ ctrlKey,altKey,shiftKey,metaKey,touches,targetTouches,changedTouches) { * } * @example * preventMove = function(e) { -* evt.preventDefault(); +* e.preventDefault(); * window.scroll(0, 0); * return false; * }; From 5ac66df9b54f420652d4dc1ceac635fb3aa44401 Mon Sep 17 00:00:00 2001 From: Priyansh Shah Date: Fri, 22 Feb 2013 13:53:10 -0500 Subject: [PATCH 2/2] Fix missing end curly bracket in 'ontouchstart function --- api/html5_touch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/html5_touch.js b/api/html5_touch.js index 089131f636..73a21483c1 100644 --- a/api/html5_touch.js +++ b/api/html5_touch.js @@ -354,6 +354,7 @@ ctrlKey,altKey,shiftKey,metaKey,touches,targetTouches,changedTouches) { * * // do something * } +*}; * @example * preventMove = function(e) { * e.preventDefault();