From 754cc81115fc5de813a18d7009008738859c23b8 Mon Sep 17 00:00:00 2001 From: Ghislain Seguin Date: Thu, 15 Dec 2011 13:07:55 -0800 Subject: [PATCH] Specified more dependencies --- js/jquery.mobile.buttonMarkup.js | 2 +- js/jquery.mobile.collapsible.js | 2 +- js/jquery.mobile.controlGroup.js | 2 +- js/jquery.mobile.core.js | 4 ++-- js/jquery.mobile.event.js | 2 +- js/jquery.mobile.fixHeaderFooter.js | 2 +- js/jquery.mobile.forms.checkboxradio.js | 2 +- js/jquery.mobile.forms.select.custom.js | 2 +- js/jquery.mobile.forms.select.js | 2 +- js/jquery.mobile.forms.slider.js | 2 +- js/jquery.mobile.forms.textinput.js | 2 +- js/jquery.mobile.init.js | 2 +- js/jquery.mobile.links.js | 2 +- js/jquery.mobile.listview.js | 2 +- js/jquery.mobile.navbar.js | 2 +- js/jquery.mobile.navigation.js | 2 +- js/jquery.mobile.page.sections.js | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) diff --git a/js/jquery.mobile.buttonMarkup.js b/js/jquery.mobile.buttonMarkup.js index cd523244..08b91087 100755 --- a/js/jquery.mobile.buttonMarkup.js +++ b/js/jquery.mobile.buttonMarkup.js @@ -2,7 +2,7 @@ * "buttons" plugin - for making button-like links */ -define( [ "jquery.mobile.vmouse" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.vmouse" ], function() { $.fn.buttonMarkup = function( options ) { options = options || {}; diff --git a/js/jquery.mobile.collapsible.js b/js/jquery.mobile.collapsible.js index 74495271..715da734 100644 --- a/js/jquery.mobile.collapsible.js +++ b/js/jquery.mobile.collapsible.js @@ -2,7 +2,7 @@ * "collapsible" plugin */ -define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() { +define( [ "jquery.mobile.widget" ], function() { $.widget( "mobile.collapsible", $.mobile.widget, { options: { diff --git a/js/jquery.mobile.controlGroup.js b/js/jquery.mobile.controlGroup.js index 9401cb3e..dc3faa99 100644 --- a/js/jquery.mobile.controlGroup.js +++ b/js/jquery.mobile.controlGroup.js @@ -2,7 +2,7 @@ * "controlgroup" plugin - corner-rounding for groups of buttons, checks, radios, etc */ -define(function() { +define( [ "jquery.mobile.buttonMarkup" ], function() { $.fn.controlgroup = function( options ) { diff --git a/js/jquery.mobile.core.js b/js/jquery.mobile.core.js index b1a3af94..e9bbbc67 100644 --- a/js/jquery.mobile.core.js +++ b/js/jquery.mobile.core.js @@ -7,7 +7,7 @@ define(function() { var nsNormalizeDict = {}; // jQuery.mobile configurable options - $.extend( $.mobile, { + $.extend( { mobile: { // Namespace used framework-wide for data-attrs. Default is no namespace ns: "", @@ -158,7 +158,7 @@ define(function() { return ltr || defaultTheme || "a"; } - }); + }}); // Mobile version of data and removeData and hasData methods // ensures all data is set and retrieved using jQuery Mobile's data namespace diff --git a/js/jquery.mobile.event.js b/js/jquery.mobile.event.js index c44b3438..44efe5cd 100644 --- a/js/jquery.mobile.event.js +++ b/js/jquery.mobile.event.js @@ -2,7 +2,7 @@ * "events" plugin - Handles events */ -define( [ "jquery.mobile.support", "jquery.mobile.vmouse" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.support", "jquery.mobile.vmouse" ], function() { // add new event shortcuts $.each( ( "touchstart touchmove touchend orientationchange throttledresize " + diff --git a/js/jquery.mobile.fixHeaderFooter.js b/js/jquery.mobile.fixHeaderFooter.js index e0276954..0777cd15 100644 --- a/js/jquery.mobile.fixHeaderFooter.js +++ b/js/jquery.mobile.fixHeaderFooter.js @@ -2,7 +2,7 @@ * "fixHeaderFooter" plugin - on-demand positioning for headers,footers */ -define( [ "jquery.mobile.vmouse" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.vmouse" ], function() { var slideDownClass = "ui-header-fixed ui-fixed-inline fade", slideUpClass = "ui-footer-fixed ui-fixed-inline fade", diff --git a/js/jquery.mobile.forms.checkboxradio.js b/js/jquery.mobile.forms.checkboxradio.js index fcac3351..2fc06d2b 100644 --- a/js/jquery.mobile.forms.checkboxradio.js +++ b/js/jquery.mobile.forms.checkboxradio.js @@ -2,7 +2,7 @@ * "checkboxradio" plugin */ -define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.widget" ], function() { $.widget( "mobile.checkboxradio", $.mobile.widget, { options: { diff --git a/js/jquery.mobile.forms.select.custom.js b/js/jquery.mobile.forms.select.custom.js index 27979a8a..c1c32a9d 100644 --- a/js/jquery.mobile.forms.select.custom.js +++ b/js/jquery.mobile.forms.select.custom.js @@ -2,7 +2,7 @@ * custom "selectmenu" plugin */ -define( [ "jquery.mobile.forms.select", "jquery.mobile.buttonMarkup" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.forms.select" ], function() { var extendSelect = function( widget ){ var select = widget.select, diff --git a/js/jquery.mobile.forms.select.js b/js/jquery.mobile.forms.select.js index 952dc274..ba295d3e 100644 --- a/js/jquery.mobile.forms.select.js +++ b/js/jquery.mobile.forms.select.js @@ -2,7 +2,7 @@ * "selectmenu" plugin */ -define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.widget" ], function() { $.widget( "mobile.selectmenu", $.mobile.widget, { options: { diff --git a/js/jquery.mobile.forms.slider.js b/js/jquery.mobile.forms.slider.js index c47dbfce..3ecb9abf 100644 --- a/js/jquery.mobile.forms.slider.js +++ b/js/jquery.mobile.forms.slider.js @@ -2,7 +2,7 @@ * "slider" plugin */ -define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.widget", "jquery.mobile.forms.textInput" ], function() { $.widget( "mobile.slider", $.mobile.widget, { options: { diff --git a/js/jquery.mobile.forms.textinput.js b/js/jquery.mobile.forms.textinput.js index 5f8e0fa5..e2483833 100644 --- a/js/jquery.mobile.forms.textinput.js +++ b/js/jquery.mobile.forms.textinput.js @@ -2,7 +2,7 @@ * "textinput" plugin for text inputs, textareas */ -define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.widget", "jquery.mobile.degradeInputs" ], function() { $.widget( "mobile.textinput", $.mobile.widget, { options: { diff --git a/js/jquery.mobile.init.js b/js/jquery.mobile.init.js index dad22b01..a6049cdd 100644 --- a/js/jquery.mobile.init.js +++ b/js/jquery.mobile.init.js @@ -2,7 +2,7 @@ * "init" - Initialize the framework */ -define( [ "jquery.mobile.core", "jquery.mobile.navigation" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.navigation", "jquery.mobile.navigation.pushState" ], function() { var $html = $( "html" ), $head = $( "head" ), $window = $( window ); diff --git a/js/jquery.mobile.links.js b/js/jquery.mobile.links.js index 49ebe923..b07249f5 100644 --- a/js/jquery.mobile.links.js +++ b/js/jquery.mobile.links.js @@ -2,7 +2,7 @@ * "links" plugin - simple class additions for links */ -define(function() { +define( function() { $( document ).bind( "pagecreate create", function( e ){ diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index b754244c..c4fa4303 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -2,7 +2,7 @@ * "listview" plugin */ -define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() { +define( [ "jquery.mobile.widget" ], function() { //Keeps track of the number of lists per page UID //This allows support for multiple nested list in the same page diff --git a/js/jquery.mobile.navbar.js b/js/jquery.mobile.navbar.js index cf031d11..c70edfd2 100644 --- a/js/jquery.mobile.navbar.js +++ b/js/jquery.mobile.navbar.js @@ -2,7 +2,7 @@ * "navbar" plugin */ -define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() { +define( [ "jquery.mobile.widget" ], function() { $.widget( "mobile.navbar", $.mobile.widget, { options: { diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index da705dfd..72e2258a 100755 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -2,7 +2,7 @@ * core utilities for auto ajax navigation, base tag mgmt, */ -define( [ "jquery.mobile.core", "jquery.mobile.hashchange", "jquery.mobile.event" ], function() { +define( [ "jquery.mobile.core", "jquery.mobile.hashchange", "jquery.mobile.event", "jquery.mobile.page" ], function() { //define vars for interal use var $window = $( window ), diff --git a/js/jquery.mobile.page.sections.js b/js/jquery.mobile.page.sections.js index 5a3037fd..e33c1f7f 100644 --- a/js/jquery.mobile.page.sections.js +++ b/js/jquery.mobile.page.sections.js @@ -2,7 +2,7 @@ * This plugin handles theming and layout of headers, footers, and content areas */ -define( [ "jquery.mobile.page" ], function() { +define( [ "jquery.mobile.page", "jquery.mobile.core" ], function() { $.mobile.page.prototype.options.backBtnText = "Back"; $.mobile.page.prototype.options.addBackBtn = false;