Skip to content

Commit 7376b45

Browse files
committed
Merge pull request jquery-archive#4880 from appendto/events-swipe-unit-tests-fix
Event: Fixed loading and reloading of touch support. Fixed jquery-archive#4879 - Swipe... Tested locally before green button merge, cherry pick to 1.1-stable in the works.
2 parents 78f114a + 4f4e3b5 commit 7376b45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/unit/event/event_core.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132

133133
var forceTouchSupport = function(){
134134
document.ontouchend = function() {};
135+
$.testHelper.reloadLib( "jquery.mobile.support.touch.js" );
135136
$.each( components, function( index, value ) { $.testHelper.reloadLib( value ); });
136137

137138
//mock originalEvent information

tests/unit/event/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</script>
1414

1515
<script src="../../../js/jquery.mobile.define.js"></script>
16+
<script src="../../../js/jquery.mobile.support.touch.js"></script>
1617
<script src="../../../js/jquery.mobile.events.js"></script>
1718
<script src="../../../js/events/touch.js"></script>
1819
<script src="../../../js/events/throttledresize.js"></script>

0 commit comments

Comments
 (0)