Adding nullcheck to touches attr on event.

This was throwing errors in IE11 on desktop.  Not that it needs gesture support...
This commit is contained in:
mizzack 2014-01-26 15:36:31 -05:00
parent e977372236
commit bed0cab833

View file

@ -14,7 +14,7 @@
*/
__onTransformGesture: function(e, self) {
if (this.isDrawingMode || e.touches.length !== 2 || 'gesture' !== self.gesture) {
if (this.isDrawingMode || !e.touches || e.touches.length !== 2 || 'gesture' !== self.gesture) {
return;
}