mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-12 00:23:11 +00:00
added closures to event and support
This commit is contained in:
parent
4af621fd9d
commit
e4e8f1ddc4
2 changed files with 8 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
@ -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 );
|
||||
Loading…
Reference in a new issue