Permalink
Browse files

fixed scoping issue that was causing the checkbox check to fail, test…

…s to follow Fixes #1328
  • Loading branch information...
1 parent c7aadd8 commit 141127b9036df00cd6e5a47278020bbbe50730c3 @johnbender johnbender committed Apr 6, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/jquery.mobile.forms.checkboxradio.js
@@ -101,8 +101,10 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
},
_updateAll: function(){
+ var self = this;
+
this._getInputSet().each(function(){
- if( $(this).is(":checked") || this.inputtype === "checkbox" ){
+ if( $(this).is(":checked") || self.inputtype === "checkbox" ){
$(this).trigger("change");
}
})

0 comments on commit 141127b

Please sign in to comment.