From 62f8ce254e98cd81ad493738d73fd2a158eae712 Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Tue, 29 Mar 2011 09:46:10 -0700 Subject: [PATCH] Bullet proof handleTouchStart() against fake touchstart events that don't have any touches[] properties defined. --- js/jquery.mobile.vmouse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.vmouse.js b/js/jquery.mobile.vmouse.js index 67b0c462..fab2f238 100644 --- a/js/jquery.mobile.vmouse.js +++ b/js/jquery.mobile.vmouse.js @@ -211,7 +211,7 @@ function mouseEventCallback(event) function handleTouchStart(event) { var touches = getNativeEvent(event).touches; - if (touches.length === 1){ + if (touches && touches.length === 1){ var target = event.target, flags = getVirtualBindingFlags(target);