mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Get rid of "moved" tracking in the label event bindings. This is all handled transparently by the virtual mouse event code.
This commit is contained in:
parent
729cda075a
commit
0a063c6d67
1 changed files with 3 additions and 13 deletions
|
|
@ -51,27 +51,17 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
|
|||
if( $(this).parent().is('.ui-disabled') ){ return false; }
|
||||
},
|
||||
|
||||
vmousecancel: function( event ){
|
||||
label.jqmData("moved", true);
|
||||
},
|
||||
|
||||
vmouseup: function( event ){
|
||||
vclick: function( event ){
|
||||
if ( input.is( ":disabled" ) ){
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
if( label.jqmData("moved") ){
|
||||
label.jqmRemoveData("moved");
|
||||
return false;
|
||||
}
|
||||
self._cacheVals();
|
||||
input.attr( "checked", inputtype === "radio" && true || !input.is( ":checked" ) );
|
||||
self._updateAll();
|
||||
event.preventDefault();
|
||||
},
|
||||
|
||||
vclick: false
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue