added closures to event and support

This commit is contained in:
scottjehl 2010-11-01 14:33:54 -04:00
parent 4af621fd9d
commit e4e8f1ddc4
2 changed files with 8 additions and 1 deletions

View file

@ -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 );

View file

@ -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'); }
if( !$.support.boxShadow ){ $('html').addClass('ui-mobile-nosupport-boxshadow'); }
})( jQuery );