From c7aadd8a479eb9738471f9187d29b40b8d13b73a Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Tue, 5 Apr 2011 15:57:37 -0700 Subject: [PATCH 1/2] Fix for issue 1379 - vmouseclick or vclick? - Changed typo "vmouseclick" to "vclick". --- js/jquery.mobile.event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.event.js b/js/jquery.mobile.event.js index 031a6af3..74fc73b0 100644 --- a/js/jquery.mobile.event.js +++ b/js/jquery.mobile.event.js @@ -81,7 +81,7 @@ $.event.special.tap = { function clearTapHandlers() { touching = false; clearTimeout(timer); - $(this).unbind("vmouseclick", clickHandler).unbind("vmousecancel", clearTapHandlers); + $(this).unbind("vclick", clickHandler).unbind("vmousecancel", clearTapHandlers); } function clickHandler(event) { From 141127b9036df00cd6e5a47278020bbbe50730c3 Mon Sep 17 00:00:00 2001 From: John Bender Date: Tue, 5 Apr 2011 22:12:09 -0700 Subject: [PATCH 2/2] fixed scoping issue that was causing the checkbox check to fail, tests to follow Fixes #1328 --- js/jquery.mobile.forms.checkboxradio.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.forms.checkboxradio.js b/js/jquery.mobile.forms.checkboxradio.js index 9280fc4c..e43df296 100644 --- a/js/jquery.mobile.forms.checkboxradio.js +++ b/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"); } })