diff --git a/js/jquery.mobile.buttonMarkup.js b/js/jquery.mobile.buttonMarkup.js index ca23e463..c54611ad 100644 --- a/js/jquery.mobile.buttonMarkup.js +++ b/js/jquery.mobile.buttonMarkup.js @@ -4,12 +4,12 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function( jQuery ) { +(function($, undefined ) { -jQuery.fn.buttonMarkup = function( options ){ +$.fn.buttonMarkup = function( options ){ return this.each( function() { - var el = jQuery( this ), - o = jQuery.extend( {}, jQuery.fn.buttonMarkup.defaults, el.data(), options), + var el = $( this ), + o = $.extend( {}, $.fn.buttonMarkup.defaults, el.data(), options), // Classes Defined buttonClass, @@ -74,7 +74,7 @@ jQuery.fn.buttonMarkup = function( options ){ }); }; -jQuery.fn.buttonMarkup.defaults = { +$.fn.buttonMarkup.defaults = { corners: true, shadow: true, iconshadow: true, @@ -82,22 +82,22 @@ jQuery.fn.buttonMarkup.defaults = { }; var attachEvents = function() { - jQuery(".ui-btn").live({ + $(".ui-btn").live({ mousedown: function() { - var theme = jQuery(this).attr( "data-theme" ); - jQuery(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme ); + var theme = $(this).attr( "data-theme" ); + $(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme ); }, mouseup: function() { - var theme = jQuery(this).attr( "data-theme" ); - jQuery(this).removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme ); + var theme = $(this).attr( "data-theme" ); + $(this).removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme ); }, "mouseover focus": function() { - var theme = jQuery(this).attr( "data-theme" ); - jQuery(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme ); + var theme = $(this).attr( "data-theme" ); + $(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme ); }, "mouseout blur": function() { - var theme = jQuery(this).attr( "data-theme" ); - jQuery(this).removeClass( "ui-btn-hover-" + theme ).addClass( "ui-btn-up-" + theme ); + var theme = $(this).attr( "data-theme" ); + $(this).removeClass( "ui-btn-hover-" + theme ).addClass( "ui-btn-up-" + theme ); } }); diff --git a/js/jquery.mobile.collapsible.js b/js/jquery.mobile.collapsible.js index a1d1c6c4..bd85b563 100644 --- a/js/jquery.mobile.collapsible.js +++ b/js/jquery.mobile.collapsible.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function ( $ ) { +(function($, undefined ) { $.widget( "mobile.collapsible", $.mobile.widget, { options: { expandCueText: ' click to expand contents', diff --git a/js/jquery.mobile.controlGroup.js b/js/jquery.mobile.controlGroup.js index bc0540cb..e5522339 100644 --- a/js/jquery.mobile.controlGroup.js +++ b/js/jquery.mobile.controlGroup.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function($){ +(function($, undefined ) { $.fn.controlgroup = function(options){ return $(this).each(function(){ diff --git a/js/jquery.mobile.dialog.js b/js/jquery.mobile.dialog.js index a0b423eb..b5d33946 100644 --- a/js/jquery.mobile.dialog.js +++ b/js/jquery.mobile.dialog.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function ( $ ) { +(function($, undefined ) { $.widget( "mobile.dialog", $.mobile.widget, { options: {}, _create: function(){ diff --git a/js/jquery.mobile.event.js b/js/jquery.mobile.event.js index 2ad603a3..41aacc4a 100644 --- a/js/jquery.mobile.event.js +++ b/js/jquery.mobile.event.js @@ -1,4 +1,4 @@ -(function( $ ) { +(function($, undefined ) { // add new event shortcuts $.each( "touchstart touchmove touchend orientationchange tap taphold swipe swipeleft swiperight scrollstart scrollstop".split( " " ), function( i, name ) { @@ -158,19 +158,19 @@ $.event.special.swipe = { } }; -(function(jQuery){ +(function($){ // "Cowboy" Ben Alman - var win = jQuery(window), + var win = $(window), special_event, get_orientation, last_orientation; - jQuery.event.special.orientationchange = special_event = { + $.event.special.orientationchange = special_event = { setup: function(){ // If the event is supported natively, return false so that jQuery // will bind to the event using DOM methods. - if ( jQuery.support.orientation ) { return false; } + if ( $.support.orientation ) { return false; } // Get the current orientation to avoid initial double-triggering. last_orientation = get_orientation(); @@ -182,7 +182,7 @@ $.event.special.swipe = { teardown: function(){ // If the event is not supported natively, return false so that // jQuery will unbind the event using DOM methods. - if ( jQuery.support.orientation ) { return false; } + if ( $.support.orientation ) { return false; } // Because the orientationchange event doesn't exist, unbind the // resize event handler. diff --git a/js/jquery.mobile.fieldContain.js b/js/jquery.mobile.fieldContain.js index 10b1db21..d4b37a56 100644 --- a/js/jquery.mobile.fieldContain.js +++ b/js/jquery.mobile.fieldContain.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function($){ +(function($, undefined ) { $.fn.fieldcontain = function(options){ var o = $.extend({ theme: 'c' diff --git a/js/jquery.mobile.fixHeaderFooter.js b/js/jquery.mobile.fixHeaderFooter.js index 313abcb1..e992667b 100644 --- a/js/jquery.mobile.fixHeaderFooter.js +++ b/js/jquery.mobile.fixHeaderFooter.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function($){ +(function($, undefined ) { $.fn.fixHeaderFooter = function(options){ if( !$.support.scrollTop ){ return $(this); } return $(this).each(function(){ @@ -58,7 +58,7 @@ $.fixedToolbars = (function(){ //function to return another footer already in the dom with the same data-id function findStickyFooter(el){ var thisFooter = el.find('[data-role="footer"]'); - return jQuery( '.ui-footer[data-id="'+ thisFooter.data('id') +'"]:not(.ui-footer-duplicate)' ).not(thisFooter); + return $( '.ui-footer[data-id="'+ thisFooter.data('id') +'"]:not(.ui-footer-duplicate)' ).not(thisFooter); } //before page is shown, check for duplicate footer diff --git a/js/jquery.mobile.forms.button.js b/js/jquery.mobile.forms.button.js index 700dad85..e269ae6a 100644 --- a/js/jquery.mobile.forms.button.js +++ b/js/jquery.mobile.forms.button.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function ( $ ) { +(function($, undefined ) { $.widget( "mobile.button", $.mobile.widget, { options: { theme: null, diff --git a/js/jquery.mobile.forms.checkboxradio.js b/js/jquery.mobile.forms.checkboxradio.js index 68531519..ee71ba32 100644 --- a/js/jquery.mobile.forms.checkboxradio.js +++ b/js/jquery.mobile.forms.checkboxradio.js @@ -4,14 +4,14 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function ( $ ) { +(function($, undefined ) { $.widget( "mobile.checkboxradio", $.mobile.widget, { options: { theme: null }, _create: function(){ var input = this.element, - label = jQuery("label[for='" + input.attr( "id" ) + "']"), + label = $("label[for='" + input.attr( "id" ) + "']"), inputtype = input.attr( "type" ), checkedicon = "ui-icon-" + inputtype + "-on", uncheckedicon = "ui-icon-" + inputtype + "-off"; @@ -53,7 +53,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, { .bind({ click: function() { - jQuery( "input[name='" + input.attr( "name" ) + "'][type='" + inputtype + "']" ).checkboxradio( "refresh" ); + $( "input[name='" + input.attr( "name" ) + "'][type='" + inputtype + "']" ).checkboxradio( "refresh" ); }, focus: function() { @@ -71,7 +71,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, { refresh: function( ){ var input = this.element, - label = jQuery("label[for='" + input.attr( "id" ) + "']"), + label = $("label[for='" + input.attr( "id" ) + "']"), inputtype = input.attr( "type" ), icon = label.find( ".ui-icon" ), checkedicon = "ui-icon-" + inputtype + "-on", diff --git a/js/jquery.mobile.forms.select.js b/js/jquery.mobile.forms.select.js index e360f31f..4fa9fc9c 100644 --- a/js/jquery.mobile.forms.select.js +++ b/js/jquery.mobile.forms.select.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function ( $ ) { +(function($, undefined ) { $.widget( "mobile.selectmenu", $.mobile.widget, { options: { theme: null, diff --git a/js/jquery.mobile.forms.slider.js b/js/jquery.mobile.forms.slider.js index 1b490166..e75d85bc 100644 --- a/js/jquery.mobile.forms.slider.js +++ b/js/jquery.mobile.forms.slider.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function ( $ ) { +(function($, undefined ) { $.widget( "mobile.slider", $.mobile.widget, { options: { theme: null, diff --git a/js/jquery.mobile.forms.textinput.js b/js/jquery.mobile.forms.textinput.js index a502a708..8cd93cd5 100644 --- a/js/jquery.mobile.forms.textinput.js +++ b/js/jquery.mobile.forms.textinput.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function ( $ ) { +(function($, undefined ) { $.widget( "mobile.textinput", $.mobile.widget, { options: { theme: null diff --git a/js/jquery.mobile.grid.js b/js/jquery.mobile.grid.js index 37ec7a57..c4869000 100644 --- a/js/jquery.mobile.grid.js +++ b/js/jquery.mobile.grid.js @@ -4,7 +4,7 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function($){ +(function($, undefined ) { $.fn.grid = function(options){ return $(this).each(function(){ var o = $.extend({ diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index 35fa89f9..b37c9d68 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -10,7 +10,7 @@ (function( $, window, undefined ) { //jQuery.mobile configurable options - jQuery.mobile = { + $.mobile = { //define the url parameter used for referencing widget-generated sub-pages. //Translates to to example.html&ui-page=subpageIdentifier @@ -51,7 +51,7 @@ //support conditions that must be met in order to proceed gradeA: function(){ - return jQuery.support.mediaquery; + return $.support.mediaquery; } }; @@ -60,14 +60,14 @@ //if device support condition(s) aren't met, leave things as they are -> a basic, usable experience, //otherwise, proceed with the enhancements - if ( !jQuery.mobile.gradeA() ) { + if ( !$.mobile.gradeA() ) { return; } //define vars for interal use - var $window = jQuery(window), - $html = jQuery('html'), - $head = jQuery('head'), + var $window = $(window), + $html = $('html'), + $head = $('head'), //to be populated at DOM ready $body, @@ -75,7 +75,7 @@ //loading div which appears during Ajax requests //will not appear if $.mobile.loadingMessage is false $loader = $.mobile.loadingMessage ? - jQuery('