From 1aafea83aa8802693b2079befccb0951e9b77f0e Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 26 Mar 2011 14:16:08 -0400 Subject: [PATCH 1/2] semicolon --- js/jquery.mobile.collapsible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.collapsible.js b/js/jquery.mobile.collapsible.js index 56586839..967fc3be 100644 --- a/js/jquery.mobile.collapsible.js +++ b/js/jquery.mobile.collapsible.js @@ -120,7 +120,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, { .not( $(event.target).closest( ".ui-collapsible-contain" ) ) .not( "> .ui-collapsible-contain .ui-collapsible-contain" ) .trigger( "collapse" ); - }) + }); var set = collapsibleParent.find( ":jqmData(role=collapsible)" ) set.first() From 8880ceb431d9f14354e738ddd9f6a01762794ebd Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 26 Mar 2011 14:17:19 -0400 Subject: [PATCH 2/2] jqm coding style --- js/jquery.mobile.core.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/jquery.mobile.core.js b/js/jquery.mobile.core.js index 408efb9a..ecb8ea2f 100644 --- a/js/jquery.mobile.core.js +++ b/js/jquery.mobile.core.js @@ -139,21 +139,21 @@ // Monkey-patching Sizzle to filter the :jqmData selector - var oldFind = jQuery.find; + var oldFind = $.find; - jQuery.find = function( selector, context, ret, extra ) { - selector = selector.replace(/:jqmData\(([^)]*)\)/g, "[data-" + (jQuery.mobile.ns || "") + "$1]"); + $.find = function( selector, context, ret, extra ) { + selector = selector.replace(/:jqmData\(([^)]*)\)/g, "[data-" + ($.mobile.ns || "") + "$1]"); return oldFind.call( this, selector, context, ret, extra ); }; - jQuery.extend( jQuery.find, oldFind ); + $.extend( $.find, oldFind ); - jQuery.find.matches = function( expr, set ) { - return jQuery.find( expr, null, null, set ); + $.find.matches = function( expr, set ) { + return $.find( expr, null, null, set ); }; - jQuery.find.matchesSelector = function( node, expr ) { - return jQuery.find( expr, null, null, [node] ).length > 0; + $.find.matchesSelector = function( node, expr ) { + return $.find( expr, null, null, [node] ).length > 0; }; })( jQuery, this );