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

Commit

Permalink
Get rid of "moved" tracking in the label event bindings. This is all …
Browse files Browse the repository at this point in the history
…handled transparently by the virtual mouse event code.
  • Loading branch information
jblas committed Mar 28, 2011
1 parent 729cda0 commit 0a063c6
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions js/jquery.mobile.forms.checkboxradio.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

});

Expand Down

0 comments on commit 0a063c6

Please sign in to comment.