fixed scoping issue that was causing the checkbox check to fail, tests to follow Fixes #1328

This commit is contained in:
John Bender 2011-04-05 22:12:09 -07:00
parent c7aadd8a47
commit 141127b903

View file

@ -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");
}
})