mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Bullet proof handleTouchStart() against fake touchstart events that don't have any touches[] properties defined.
This commit is contained in:
parent
9e40d14b28
commit
62f8ce254e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue