From e4e8f1ddc4850c09e3a276074d02903bef8519f5 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Mon, 1 Nov 2010 14:33:54 -0400 Subject: [PATCH] added closures to event and support --- js/jquery.mobile.event.js | 4 ++++ js/jquery.mobile.support.js | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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