Assume jquery is loaded so don't require it

This commit is contained in:
Ghislain Seguin 2011-12-07 22:08:30 -08:00
parent 2ece69afd5
commit cf04068eba
36 changed files with 37 additions and 38 deletions

View file

@ -2,7 +2,7 @@
* "buttons" plugin - for making button-like links
*/
define( [ "jquery", "jquery.mobile.vmouse" ], function( $, undefined ) {
define( [ "jquery.mobile.vmouse" ], function() {
$.fn.buttonMarkup = function( options ) {
options = options || {};

View file

@ -2,7 +2,7 @@
* "collapsible" plugin
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() {
$.widget( "mobile.collapsible", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* "collapsibleset" plugin
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.collapsible" ], function( $ ) {
define( [ "jquery.mobile.widget", "jquery.mobile.collapsible" ], function() {
$.widget( "mobile.collapsibleset", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* "controlgroup" plugin - corner-rounding for groups of buttons, checks, radios, etc
*/
define( [ "jquery" ], function( $, undefined ) {
define(function() {
$.fn.controlgroup = function( options ) {

View file

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

View file

@ -2,7 +2,7 @@
* "degradeInputs" plugin - degrades inputs to another type after custom enhancements are made.
*/
define( [ "jquery", "jquery.mobile.page" ], function( $, undefined ) {
define( [ "jquery.mobile.page" ], function() {
$.mobile.page.prototype.options.degradeInputs = {
color: false,

View file

@ -2,7 +2,7 @@
* "dialog" plugin.
*/
define( [ "jquery", "jquery.mobile.widget" ], function( $, undefined ) {
define( [ "jquery.mobile.widget" ], function() {
$.widget( "mobile.dialog", $.mobile.widget, {
options: {

View file

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

View file

@ -2,7 +2,7 @@
* "fieldcontain" plugin - simple class additions to make form row separators
*/
define( [ "jquery" ], function( $, undefined ) {
define(function() {
$.fn.fieldcontain = function( options ) {
return this.addClass( "ui-field-contain ui-body ui-br" );

View file

@ -2,7 +2,7 @@
* "fixHeaderFooter" plugin - on-demand positioning for headers,footers
*/
define( [ "jquery", "jquery.mobile.vmouse" ], function( $, undefined ) {
define( [ "jquery.mobile.vmouse" ], function() {
var slideDownClass = "ui-header-fixed ui-fixed-inline fade",
slideUpClass = "ui-footer-fixed ui-fixed-inline fade",

View file

@ -2,7 +2,7 @@
* "fixHeaderFooter" native plugin - Behavior for "fixed" headers,footers, and scrolling inner content
*/
define( [ "jquery", "jquery.mobile.core" ], function( $, undefined ) {
define( [ "jquery.mobile.core" ], function() {
// Enable touch overflow scrolling when it's natively supported
$.mobile.touchOverflowEnabled = false;

View file

@ -2,7 +2,7 @@
* "button" plugin - links that proxy to native input/buttons
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() {
$.widget( "mobile.button", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* "checkboxradio" plugin
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function() {
$.widget( "mobile.checkboxradio", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* custom "selectmenu" plugin
*/
define( [ "jquery", "jquery.mobile.forms.select", "jquery.mobile.buttonMarkup" ], function( $, undefined ) {
define( [ "jquery.mobile.forms.select", "jquery.mobile.buttonMarkup" ], function() {
var extendSelect = function( widget ){
var select = widget.select,

View file

@ -2,7 +2,7 @@
* "selectmenu" plugin
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function() {
$.widget( "mobile.selectmenu", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* "slider" plugin
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup", "jquery.mobile.vmouse" ], function() {
$.widget( "mobile.slider", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* "textinput" plugin for text inputs, textareas
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() {
$.widget( "mobile.textinput", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* plugin for creating CSS grids
*/
define( [ "jquery" ], function( $, undefined ) {
define(function() {
$.fn.grid = function( options ) {
return this.each(function() {

View file

@ -76,7 +76,7 @@
// extra awesomeness that BBQ provides. This plugin will be included as
// part of jQuery BBQ, but also be available separately.
define( [ "jquery" ], function( $, undefined ){
define(function(){
'$:nomunge'; // Used by YUI compressor.
// Reused string.

View file

@ -2,7 +2,7 @@
* "init" - Initialize the framework
*/
define( [ "jquery", "jquery.mobile.core", "jquery.mobile.navigation" ], function( $, undefined ) {
define( [ "jquery.mobile.core", "jquery.mobile.navigation" ], function() {
var $html = $( "html" ),
$head = $( "head" ),
$window = $( window );

View file

@ -32,8 +32,7 @@ define([
'order!jquery.mobile.controlGroup',
'jquery.mobile.links',
'jquery.mobile.fixHeaderFooter',
'jquery.mobile.fixHeaderFooter.native',
'order!jquery.mobile.init'
'jquery.mobile.fixHeaderFooter.native'
], function() {
require( [ 'jquery.mobile.init' ] );
});

View file

@ -2,7 +2,7 @@
* "links" plugin - simple class additions for links
*/
define( [ "jquery" ], function( $, undefined ) {
define(function() {
$( document ).bind( "pagecreate create", function( e ){

View file

@ -2,7 +2,7 @@
* "listview" filter extension
*/
define( [ "jquery", "jquery.mobile.listview" ], function( $, undefined ) {
define( [ "jquery.mobile.listview" ], function() {
$.mobile.listview.prototype.options.filter = false;
$.mobile.listview.prototype.options.filterPlaceholder = "Filter items...";

View file

@ -2,7 +2,7 @@
* "listview" plugin
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() {
//Keeps track of the number of lists per page UID
//This allows support for multiple nested list in the same page

View file

@ -2,7 +2,7 @@
* a workaround for window.matchMedia
*/
define( [ "jquery", "jquery.mobile.core" ], function( $, undefined ) {
define( [ "jquery.mobile.core" ], function() {
var $window = $( window ),
$html = $( "html" );

View file

@ -2,7 +2,7 @@
* "navbar" plugin
*/
define( [ "jquery", "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function( $, undefined ) {
define( [ "jquery.mobile.widget", "jquery.mobile.buttonMarkup" ], function() {
$.widget( "mobile.navbar", $.mobile.widget, {
options: {

View file

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

View file

@ -2,7 +2,7 @@
* history.pushState support, layered on top of hashchange
*/
define( [ "jquery", "jquery.mobile.navigation" ], function( $ ) {
define( [ "jquery.mobile.navigation" ], function() {
// For now, let's Monkeypatch this onto the end of $.mobile._registerInternalEvents
// Scope self to pushStateHandler so we can reference it sanely within the
// methods handed off as event handlers

View file

@ -2,7 +2,7 @@
* "nojs" plugin - class to make elements hidden to A grade browsers
*/
define( [ "jquery" ], function( $, undefined ) {
define(function() {
$( document ).bind( "pagecreate create", function( e ){
$( ":jqmData(role='nojs')", e.target ).addClass( "ui-nojs" );

View file

@ -2,7 +2,7 @@
* "page" plugin
*/
define( [ "jquery", "jquery.mobile.widget" ], function( $, undefined ) {
define( [ "jquery.mobile.widget" ], function() {
$.widget( "mobile.page", $.mobile.widget, {
options: {

View file

@ -2,7 +2,7 @@
* This plugin handles theming and layout of headers, footers, and content areas
*/
define( [ "jquery", "jquery.mobile.page" ], function( $, undefined ) {
define( [ "jquery.mobile.page" ], function() {
$.mobile.page.prototype.options.backBtnText = "Back";
$.mobile.page.prototype.options.addBackBtn = false;

View file

@ -2,7 +2,7 @@
* support tests
*/
define( [ "jquery", "jquery.mobile.media" ], function( $, undefined ) {
define( [ "jquery.mobile.media" ], function() {
var fakeBody = $( "<body>" ).prependTo( "html" ),
fbCSS = fakeBody[ 0 ].style,

View file

@ -2,7 +2,7 @@
* "transitions" plugin - Page change tranistions
*/
define( [ "jquery", "jquery.mobile.core" ], function( $, undefined ) {
define( [ "jquery.mobile.core" ], function() {
function css3TransitionHandler( name, reverse, $to, $from ) {

View file

@ -17,7 +17,7 @@
// The current version exposes the following virtual events to jQuery bind methods:
// "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
define( [ "jquery" ], function( $, undefined ) {
define(function() {
var dataPropertyName = "virtualMouseBindings",
touchTargetPropertyName = "virtualTouchID",

View file

@ -2,7 +2,7 @@
* widget factory extentions for mobile
*/
define( [ "jquery", "jquery.ui.widget" ], function( $, undefined ) {
define( [ "jquery.ui.widget" ], function() {
$.widget( "mobile.widget", {
// decorate the parent _createWidget to trigger `widgetinit` for users

View file

@ -8,7 +8,7 @@
* http://docs.jquery.com/UI/Widget
*/
define( [ "jquery" ], function( $, undefined ) {
define(function() {
// jQuery 1.4+
if ( $.cleanData ) {