Moved $.support.mediaquery to jquery.mobile.media

Set dependencies
This commit is contained in:
Ghislain Seguin 2011-12-01 09:34:21 -08:00
parent 7a90116ee2
commit 3d4f524604
2 changed files with 6 additions and 3 deletions

View file

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

View file

@ -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,