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

Commit

Permalink
Switch back to processing link clicks on the "click" event. It really…
Browse files Browse the repository at this point in the history
… is the only reliable way across all the devices we support.

Also, remove all references to useFastClick.
  • Loading branch information
jblas committed Jun 30, 2011
1 parent 2fda8f7 commit 2b51355
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions docs/api/globalconfig.html
Expand Up @@ -98,9 +98,6 @@ <h2>Configurable options</h2>

<dt>ajaxEnabled (<em>boolean</em>, default: true):</dt>
<dd>jQuery Mobile will automatically handle link clicks and form submissions through Ajax, when possible. If false, url hash listening will be disabled as well, and urls will load as regular http requests.</dd>

<dt>useFastClick (<em>boolean</em>, default: true):</dt>
<dd>When handling clicks and taps automatically with Ajax, this option will use jQuery Mobile's <code>vclick</code> event, enabling page changes to happen slightly sooner on devices that support touch events, and keeping the address bar hidden during page transtions. When disabled, the automatied Ajax handling will use an ordinary <code>click</code> event instead. This option has no effect on non-touch devices, but when enabled, it may interfere with jQuery plugins that bind to click events rather than vclick events.</dd>


<dt>hashListeningEnabled (<em>boolean</em>, default: true):</dt>
Expand Down
5 changes: 0 additions & 5 deletions js/jquery.mobile.core.js
Expand Up @@ -33,11 +33,6 @@
// Automatically handle clicks and form submissions through Ajax, when same-domain
ajaxEnabled: true,

// When enabled, clicks and taps that result in Ajax page changes will happen slightly sooner on touch devices.
// Also, it will prevent the address bar from appearing on platforms like iOS during page transitions.
// This option has no effect on non-touch devices, but enabling it may interfere with jQuery plugins that bind to click events
useFastClick: true,

// Automatically load and show pages based on location.hash
hashListeningEnabled: true,

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Expand Up @@ -1019,7 +1019,7 @@
});

// click routing - direct to HTTP or Ajax, accordingly
$( document ).bind( $.mobile.useFastClick ? "vclick" : "click", function( event ) {
$( document ).bind( "click", function( event ) {
var link = findClosestLink( event.target );
if ( !link ) {
return;
Expand Down

0 comments on commit 2b51355

Please sign in to comment.