Fixes #2212 - Collapsible heading vclick issue

- Switch to using "click" instead of "vclick" on collapsible headers since that is the only reliable way to prevent uncaught/mismatched clicks from firing on a different element.
This commit is contained in:
Kin Blas 2011-09-29 00:43:01 -07:00
parent f6b2a9c700
commit bb8326876b

View file

@ -140,7 +140,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
.trigger( o.collapsed ? "collapse" : "expand" );
collapsibleHeading
.bind( "vclick", function( event ) {
.bind( "click", function( event ) {
var type = collapsibleHeading.is( ".ui-collapsible-heading-collapsed" ) ?
"expand" : "collapse";