Index: ui/webui/resources/js/cr/ui/touch_handler.js |
diff --git a/ui/webui/resources/js/cr/ui/touch_handler.js b/ui/webui/resources/js/cr/ui/touch_handler.js |
index acc12afe1f5df22177c23106e0bc89487927cace..67f83f766e2f83f4317af8f1f3d9f5a7f7a89efa 100644 |
--- a/ui/webui/resources/js/cr/ui/touch_handler.js |
+++ b/ui/webui/resources/js/cr/ui/touch_handler.js |
@@ -788,6 +788,8 @@ cr.define('cr.ui', function() { |
this.disableTap_ = true; |
// Dispatch to the LONG_PRESS |
+ assert(this.startTouchX_ !== undefined); |
+ assert(this.startTouchY_ !== undefined); |
Dan Beam
2014/10/01 01:25:57
nit: assert(typeof this.startTouchY_ == 'number');
Vitaly Pavlenko
2014/10/01 03:07:31
Done.
|
this.dispatchEventXY_(TouchHandler.EventType.LONG_PRESS, this.element_, |
/** @type {number} */(this.startTouchX_), |
/** @type {number} */(this.startTouchY_)); |