Skip to content

Commit 0b41fe8

Browse files
committed
added comment for the touches event proto addition
1 parent c3dfcf6 commit 0b41fe8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/event/event_core.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
Math.abs = absFn;
2323
$.Event.prototype.originalEvent = originalEventFn;
2424
$.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
2528
$.Event.prototype.touches = [{pageX: 1, pageY: 1 }];
2629

2730
$($.mobile.pageContainer).unbind( "throttledresize" );

0 commit comments

Comments
 (0)