Don't crash when double tap zooming on pointer if a property is null.

This commit is contained in:
danzel 2013-12-06 14:36:56 +13:00
parent 3924b49708
commit c287eccef3

View File

@ -49,7 +49,7 @@ L.extend(L.DomEvent, {
for (i in touch) {
prop = touch[i];
newTouch[i] = prop.bind ? prop.bind(touch) : prop;
newTouch[i] = prop && prop.bind ? prop.bind(touch) : prop;
}
touch = newTouch;
}