diff --git a/js/jquery.mobile.event.js b/js/jquery.mobile.event.js index 8d13c7b0..b5fd7f15 100644 --- a/js/jquery.mobile.event.js +++ b/js/jquery.mobile.event.js @@ -1,3 +1,5 @@ +(function( $ ) { + // add new event shortcuts $.each( "touchstart touchmove touchend orientationchange tap taphold swipe swipeleft swiperight scrollstart scrollstop".split( " " ), function( i, name ) { $.fn[ name ] = function( fn ) { @@ -193,3 +195,5 @@ $.each({ } }; }); + +})( jQuery ); \ No newline at end of file diff --git a/js/jquery.mobile.support.js b/js/jquery.mobile.support.js index f063c47d..e34edc5a 100644 --- a/js/jquery.mobile.support.js +++ b/js/jquery.mobile.support.js @@ -1,3 +1,4 @@ +(function( $ ) { // test whether a CSS media type or query applies $.media = (function() { @@ -62,4 +63,6 @@ $.extend( $.support, { fakeBody.remove(); //for ruling out shadows via css -if( !$.support.boxShadow ){ $('html').addClass('ui-mobile-nosupport-boxshadow'); } \ No newline at end of file +if( !$.support.boxShadow ){ $('html').addClass('ui-mobile-nosupport-boxshadow'); } + +})( jQuery ); \ No newline at end of file