Update to relative AMD dependencies, allows proper use of source in an AMD project.

This commit is contained in:
jrburke 2012-01-24 14:43:24 -08:00
parent 40c400d657
commit 096e90bbfe
38 changed files with 91 additions and 94 deletions

View file

@ -2,7 +2,7 @@
//>>description: For making button-like links.
//>>label: Buttons
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.vmouse" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.vmouse" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $, undefined ) {

View file

@ -1,7 +1,7 @@
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
//>>description: Creates collapsible content areas.
//>>label: Collapsibles
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: For creating grouped collapsible content areas.
//>>label: Collapsible Sets
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.collapsible" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.collapsible" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Corner-rounding for groups of buttons, checks, radios, etc
//>>label: Controlgroups
define( [ "jquery", "jquery.mobile.buttonMarkup" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.buttonMarkup" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -4,7 +4,7 @@
//>>group: core
//>>required: true
define( [ "jquery", "jquery.mobile.widget" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Degrades inputs to another type after custom enhancements are made.
//>>label: Degrade Inputs
define( [ "jquery", "jquery.mobile.page" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.page" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Degrades inputs to another type after custom enhancements are made.
//>>label: Dialog-style Pages
define( [ "jquery", "jquery.mobile.widget" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -4,7 +4,7 @@
//>>group: core
//>>required: true
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.media", "jquery.mobile.support", "jquery.mobile.vmouse" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.media", "./jquery.mobile.support", "./jquery.mobile.vmouse" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Behavior for "fixed" headers and footers
//>>label: Fixedtoolbar
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.core", "jquery.mobile.navigation", "jquery.mobile.page", "jquery.mobile.page.sections", "jquery.mobile.zoom" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.mobile.navigation", "./jquery.mobile.page", "./jquery.mobile.page.sections", "./jquery.mobile.zoom" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Form Buttons
//>>label: links that proxy to native input/buttons
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -6,7 +6,7 @@
//>>description: Consistent styling for checkboxes/radio buttons.
//>>label: Checkboxes/Radio Buttons
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -8,14 +8,14 @@
define( [
"jquery",
"jquery.mobile.buttonMarkup",
"jquery.mobile.core",
"jquery.mobile.dialog",
"jquery.mobile.forms.select",
"jquery.mobile.listview",
"jquery.mobile.page",
"./jquery.mobile.buttonMarkup",
"./jquery.mobile.core",
"./jquery.mobile.dialog",
"./jquery.mobile.forms.select",
"./jquery.mobile.listview",
"./jquery.mobile.page",
// NOTE expects ui content in the defined page, see selector for menuPageContent definition
"jquery.mobile.page.sections" ], function( $ ) {
"./jquery.mobile.page.sections" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {
var extendSelect = function( widget ){

View file

@ -2,7 +2,7 @@
//>>description: Consistent styling for native select menus.
//>>label: Enhanced Native Selects
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.zoom" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.zoom" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Slider form widget
//>>label: Slider
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.widget", "jquery.mobile.forms.textinput", "jquery.mobile.buttonMarkup" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.forms.textinput", "./jquery.mobile.buttonMarkup" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Enhances and consistently styles text inputs.
//>>label: Text Inputs
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.widget", "jquery.mobile.degradeInputs", "jquery.mobile.buttonMarkup" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.widget", "./jquery.mobile.degradeInputs", "./jquery.mobile.buttonMarkup" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Applies classes for grid styling.
//>>label: CSS Grid Tool
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.navigation", "jquery.mobile.navigation.pushstate" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.navigation", "./jquery.mobile.navigation.pushstate" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $, window, undefined ) {
var $html = $( "html" ),

View file

@ -1,48 +1,49 @@
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
define([
'jquery.ui.widget',
'jquery.mobile.widget',
'jquery.mobile.media',
'jquery.mobile.support',
'jquery.mobile.vmouse',
'jquery.mobile.event',
'jquery.mobile.hashchange',
'jquery.mobile.page',
'jquery.mobile.core',
'order!jquery.mobile.navigation',
'order!jquery.mobile.navigation.pushstate',
'jquery.mobile.transition',
'jquery.mobile.transition.pop',
'jquery.mobile.transition.slide',
'jquery.mobile.transition.slidedown',
'jquery.mobile.transition.slideup',
'jquery.mobile.transition.flip',
'jquery.mobile.transition.flow',
'jquery.mobile.transition.turn',
'jquery.mobile.degradeInputs',
'jquery.mobile.dialog',
'jquery.mobile.page.sections',
'jquery.mobile.collapsible',
'jquery.mobile.collapsibleSet',
'jquery.mobile.fieldContain',
'jquery.mobile.grid',
'jquery.mobile.navbar',
'jquery.mobile.listview',
'jquery.mobile.listview.filter',
'jquery.mobile.nojs',
'jquery.mobile.forms.checkboxradio',
'jquery.mobile.forms.button',
'jquery.mobile.forms.slider',
'jquery.mobile.forms.textinput',
'jquery.mobile.forms.select.custom',
'jquery.mobile.forms.select',
'jquery.mobile.buttonMarkup',
'jquery.mobile.controlGroup',
'jquery.mobile.links',
'jquery.mobile.fixedToolbar',
'jquery.mobile.zoom',
'jquery.mobile.zoom.iosorientationfix'
], function() {
require( [ 'jquery.mobile.init' ] );
'require',
'./jquery.ui.widget',
'./jquery.mobile.widget',
'./jquery.mobile.media',
'./jquery.mobile.support',
'./jquery.mobile.vmouse',
'./jquery.mobile.event',
'./jquery.mobile.hashchange',
'./jquery.mobile.page',
'./jquery.mobile.core',
'order!./jquery.mobile.navigation',
'order!./jquery.mobile.navigation.pushstate',
'./jquery.mobile.transition',
'./jquery.mobile.transition.pop',
'./jquery.mobile.transition.slide',
'./jquery.mobile.transition.slidedown',
'./jquery.mobile.transition.slideup',
'./jquery.mobile.transition.flip',
'./jquery.mobile.transition.flow',
'./jquery.mobile.transition.turn',
'./jquery.mobile.degradeInputs',
'./jquery.mobile.dialog',
'./jquery.mobile.page.sections',
'./jquery.mobile.collapsible',
'./jquery.mobile.collapsibleSet',
'./jquery.mobile.fieldContain',
'./jquery.mobile.grid',
'./jquery.mobile.navbar',
'./jquery.mobile.listview',
'./jquery.mobile.listview.filter',
'./jquery.mobile.nojs',
'./jquery.mobile.forms.checkboxradio',
'./jquery.mobile.forms.button',
'./jquery.mobile.forms.slider',
'./jquery.mobile.forms.textinput',
'./jquery.mobile.forms.select.custom',
'./jquery.mobile.forms.select',
'./jquery.mobile.buttonMarkup',
'./jquery.mobile.controlGroup',
'./jquery.mobile.links',
'./jquery.mobile.fixedToolbar',
'./jquery.mobile.zoom',
'./jquery.mobile.zoom.iosorientationfix'
], function( require ) {
require( [ './jquery.mobile.init' ], function() {} );
});
//>>excludeEnd("jqmBuildExclude");

View file

@ -2,7 +2,7 @@
//>>description: Adds a filtering textfield to listviews
//>>label: Listview Filter
define( [ "jquery", "jquery.mobile.listview", "jquery.mobile.forms.textinput" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.listview", "./jquery.mobile.forms.textinput" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Adds a filtering textfield to listviews
//>>label: Listview Filter
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.page", "jquery.mobile.page.sections" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.page", "./jquery.mobile.page.sections" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: A workaround for browsers without window.matchMedia
//>>label: matchMedia Polyfill
define( [ "jquery", "jquery.mobile.core" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Formats groups of links as navigation bars.
//>>label: Navigation Bars
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.grid" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.buttonMarkup", "./jquery.mobile.grid" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -4,11 +4,11 @@
define( [
"jquery",
"jquery.mobile.core",
"jquery.mobile.event",
"jquery.mobile.hashchange",
"jquery.mobile.page",
"jquery.mobile.transition" ], function( $ ) {
"./jquery.mobile.core",
"./jquery.mobile.event",
"./jquery.mobile.hashchange",
"./jquery.mobile.page",
"./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: history.pushState support, layered on top of hashchange.
//>>label: Pushstate Support
define( [ "jquery", "jquery.mobile.navigation" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.navigation" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $, window ) {
// For now, let's Monkeypatch this onto the end of $.mobile._registerInternalEvents

View file

@ -2,7 +2,7 @@
//>>description: Basic page formatting.
//>>label: Pages
define( [ "jquery", "jquery.mobile.widget" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Theming and layout of headers, footers, and content areas
//>>label: Page Sections
define( [ "jquery", "jquery.mobile.page", "jquery.mobile.core", "jquery.mobile.buttonMarkup" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.page", "./jquery.mobile.core", "./jquery.mobile.buttonMarkup" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -4,9 +4,7 @@
//>>group: core
//>>required: true
// For test purposes we can't use anonymous module here otherwise
// the tests will throw http://requirejs.org/docs/errors.html#mismatch
define( "jquery.mobile.support", [ "jquery", "jquery.mobile.media" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.media" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -6,7 +6,7 @@
//>>description: Fallback transition for flip in non-3D supporting browsers
//>>label: Flip fallback transition
define( [ "jquery", "jquery.mobile.transition" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -6,7 +6,7 @@
//>>description: Fallback transition for flow in non-3D supporting browsers
//>>label: Flow fallback transition
define( [ "jquery", "jquery.mobile.transition" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -3,7 +3,7 @@
//>>description: Page change transition core
//>>label: Transition Core
define( [ "jquery", "jquery.mobile.core" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -6,7 +6,7 @@
//>>description: Fallback transition for pop in non-3D supporting browsers
//>>label: Pop fallback transition
define( [ "jquery", "jquery.mobile.transition" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -6,7 +6,7 @@
//>>description: Fallback transition for slide in non-3D supporting browsers
//>>label: Slide fallback transition
define( [ "jquery", "jquery.mobile.transition" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -6,7 +6,7 @@
//>>description: Fallback transition for slidedown in non-3D supporting browsers
//>>label: Slidedown fallback transition
define( [ "jquery", "jquery.mobile.transition" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -6,7 +6,7 @@
//>>description: Fallback transition for slideup in non-3D supporting browsers
//>>label: Slideup fallback transition
define( [ "jquery", "jquery.mobile.transition" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -7,7 +7,7 @@
//>>label: Page turn fallback transition
define( [ "jquery", "jquery.mobile.transition" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.transition" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Widget factory extentions for mobile.
//>>label: Widget Factory Extensions
define( [ "jquery", "jquery.ui.widget" ], function( $ ) {
define( [ "jquery", "./jquery.ui.widget" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {

View file

@ -2,7 +2,7 @@
//>>description: Fixes the iOS orientation change bug using a jQM version of this technique https://github.com/scottjehl/iOS-Orientationchange-Fix
//>>label: iOS orientation change bugfix
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.zoom" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.zoom" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $, window ) {
var zoom = $.mobile.zoom,

View file

@ -2,7 +2,7 @@
//>>description: Utility methods for enabling and disabling user scaling (pinch zoom)
//>>label: zoomhandling
define( [ "jquery", "jquery.mobile.core" ], function( $ ) {
define( [ "jquery", "./jquery.mobile.core" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
( function( $ ) {
var meta = $( "meta[name=viewport]" ),

View file

@ -25,8 +25,6 @@
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit.css"/>
<script src="../../../js/jquery.mobile.support.js"></script>
<script src="../swarminject.js"></script>
</head>
<body>