mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 11:54:43 +00:00
Moved $.support.mediaquery to jquery.mobile.media
Set dependencies
This commit is contained in:
parent
7a90116ee2
commit
3d4f524604
2 changed files with 6 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* a workaround for window.matchMedia
|
||||
*/
|
||||
|
||||
define( [ "jquery" ], function( $, undefined ) {
|
||||
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.support" ], function( $, undefined ) {
|
||||
|
||||
var $window = $( window ),
|
||||
$html = $( "html" );
|
||||
|
|
@ -42,4 +42,8 @@ $.mobile.media = (function() {
|
|||
};
|
||||
})();
|
||||
|
||||
$.extend( $.support, {
|
||||
mediaquery: $.mobile.media( "only all" )
|
||||
})
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* support tests
|
||||
*/
|
||||
|
||||
define( [ "jquery" ], function( $, undefined ) {
|
||||
define( [ "jquery", "jquery.mobile.core" ], function( $, undefined ) {
|
||||
|
||||
var fakeBody = $( "<body>" ).prependTo( "html" ),
|
||||
fbCSS = fakeBody[ 0 ].style,
|
||||
|
|
@ -67,7 +67,6 @@ $.extend( $.support, {
|
|||
touch: "ontouchend" in document,
|
||||
cssTransitions: "WebKitTransitionEvent" in window,
|
||||
pushState: "pushState" in history && "replaceState" in history,
|
||||
mediaquery: $.mobile.media( "only all" ),
|
||||
cssPseudoElement: !!propExists( "content" ),
|
||||
touchOverflow: !!propExists( "overflowScrolling" ),
|
||||
boxShadow: !!propExists( "boxShadow" ) && !bb,
|
||||
|
|
|
|||
Loading…
Reference in a new issue