Skip to content
This repository
Browse code

added comment for the touches event proto addition

  • Loading branch information...
commit 0b41fe808c630277c1710c16c2d828e6fad72229 1 parent c3dfcf6
John Bender johnbender authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  tests/unit/event/event_core.js
3  tests/unit/event/event_core.js
@@ -22,6 +22,9 @@
22 22 Math.abs = absFn;
23 23 $.Event.prototype.originalEvent = originalEventFn;
24 24 $.Event.prototype.preventDefault = preventDefaultFn;
  25 +
  26 + // make sure the event objects respond to touches to simulate
  27 + // the collections existence in non touch enabled test browsers
25 28 $.Event.prototype.touches = [{pageX: 1, pageY: 1 }];
26 29
27 30 $($.mobile.pageContainer).unbind( "throttledresize" );

0 comments on commit 0b41fe8

Please sign in to comment.
Something went wrong with that request. Please try again.