Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit a4d304d

Browse files
Wiltojaspermdegroot
authored andcommitted
Added comment explaining empty setTimeout in test.
1 parent 4b957ac commit a4d304d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/select/select_native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
ok( $.mobile.zoom.enabled === false, "zoom is disabled on vmousedown" );
7777
})
7878
.one("mouseup.test", function(){
79-
setTimeout(function() {
79+
setTimeout(function() { // This empty setTimeout is to match the work-around for the issue reported in https://github.com/jquery/jquery-mobile/issues/5041
8080
ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
8181
$.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
8282
$(document).unbind(".test");

0 commit comments

Comments
 (0)