Bullet proof handleTouchStart() against fake touchstart events that don't have any touches[] properties defined.

This commit is contained in:
Kin Blas 2011-03-29 09:46:10 -07:00
parent 9e40d14b28
commit 62f8ce254e

View file

@ -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);