Fixed deps

This commit is contained in:
Ghislain Seguin 2011-12-07 15:42:08 -08:00
parent f37f9c72b3
commit ff25bcc662
5 changed files with 7 additions and 10 deletions

View file

@ -2,7 +2,7 @@
* "core" - The base file for jQm
*/
define( [ "jquery", "jquery.mobile.support" ], function( $, undefined ) {
define( [ "jquery" ], function( $, undefined ) {
var nsNormalizeDict = {};

View file

@ -2,7 +2,7 @@
* "events" plugin - Handles events
*/
define( [ "jquery", "jquery.mobile.vmouse" ], function( $, undefined ) {
define( [ "jquery", "jquery.mobile.support", "jquery.mobile.vmouse" ], function( $, undefined ) {
// add new event shortcuts
$.each( ( "touchstart touchmove touchend orientationchange throttledresize " +

View file

@ -2,7 +2,7 @@
* a workaround for window.matchMedia
*/
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.support" ], function( $, undefined ) {
define( [ "jquery", "jquery.mobile.core" ], function( $, undefined ) {
var $window = $( window ),
$html = $( "html" );
@ -42,8 +42,4 @@ $.mobile.media = (function() {
};
})();
$.extend( $.support, {
mediaquery: $.mobile.media( "only all" )
})
});

View file

@ -2,7 +2,7 @@
* core utilities for auto ajax navigation, base tag mgmt,
*/
define( [ "jquery", "jquery.mobile.core" ], function( $, undefined ) {
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.hashchange", "jquery.mobile.event" ], function( $, undefined ) {
//define vars for interal use
var $window = $( window ),

View file

@ -2,7 +2,7 @@
* support tests
*/
define( [ "jquery", "jquery.mobile.core" ], function( $, undefined ) {
define( [ "jquery", "jquery.mobile.media" ], function( $, undefined ) {
var fakeBody = $( "<body>" ).prependTo( "html" ),
fbCSS = fakeBody[ 0 ].style,
@ -50,7 +50,7 @@ function baseTagTest() {
// non-UA-based IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683
// allows for inclusion of IE 6+, including Windows Mobile 7
$.mobile.browser = {};
$.extend( $.mobile, { browser: {} } );
$.mobile.browser.ie = (function() {
var v = 3,
div = document.createElement( "div" ),
@ -67,6 +67,7 @@ $.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,