Commit cd4a9cd7 authored by Timmy Willison's avatar Timmy Willison

All non-var modules should not indent in their AMD wrappers (just for prettier...

All non-var modules should not indent in their AMD wrappers (just for prettier builds). No functionality changes.
parent 3b53b751
...@@ -2,7 +2,8 @@ define([ ...@@ -2,7 +2,8 @@ define([
"../core" "../core"
], function( jQuery ) { ], function( jQuery ) {
jQuery.parseJSON = JSON.parse; jQuery.parseJSON = JSON.parse;
return jQuery.parseJSON;
return jQuery.parseJSON;
}); });
define([ define([
"../core" "../core"
], function( jQuery ) { ], function( jQuery ) {
// Cross-browser xml parsing
jQuery.parseXML = function( data ) { // Cross-browser xml parsing
jQuery.parseXML = function( data ) {
var xml, tmp; var xml, tmp;
if ( !data || typeof data !== "string" ) { if ( !data || typeof data !== "string" ) {
return null; return null;
...@@ -20,7 +21,8 @@ define([ ...@@ -20,7 +21,8 @@ define([
jQuery.error( "Invalid XML: " + data ); jQuery.error( "Invalid XML: " + data );
} }
return xml; return xml;
}; };
return jQuery.parseXML;
return jQuery.parseXML;
}); });
...@@ -5,6 +5,7 @@ define([ ...@@ -5,6 +5,7 @@ define([
"./attributes/classes", "./attributes/classes",
"./attributes/val" "./attributes/val"
], function( jQuery ) { ], function( jQuery ) {
// Return jQuery for attributes-only inclusion
return jQuery; // Return jQuery for attributes-only inclusion
return jQuery;
}); });
define([ define([
"../core" "../core"
], function( jQuery ) { ], function( jQuery ) {
// Multifunctional method to get and set values of a collection
// The value/s can optionally be executed if it's a function // Multifunctional method to get and set values of a collection
var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { // The value/s can optionally be executed if it's a function
var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0, var i = 0,
length = elems.length, length = elems.length,
bulk = key == null; bulk = key == null;
...@@ -52,7 +53,8 @@ define([ ...@@ -52,7 +53,8 @@ define([
bulk ? bulk ?
fn.call( elems ) : fn.call( elems ) :
length ? fn( elems[0], key ) : emptyGet; length ? fn( elems[0], key ) : emptyGet;
}; };
return access;
return access;
}); });
...@@ -4,10 +4,10 @@ define([ ...@@ -4,10 +4,10 @@ define([
"../manipulation" // buildFragment "../manipulation" // buildFragment
], function( jQuery, rsingleTag ) { ], function( jQuery, rsingleTag ) {
// data: string of html // data: string of html
// context (optional): If specified, the fragment will be created in this context, defaults to document // context (optional): If specified, the fragment will be created in this context, defaults to document
// keepScripts (optional): If true, will include scripts passed in the html string // keepScripts (optional): If true, will include scripts passed in the html string
jQuery.parseHTML = function( data, context, keepScripts ) { jQuery.parseHTML = function( data, context, keepScripts ) {
if ( !data || typeof data !== "string" ) { if ( !data || typeof data !== "string" ) {
return null; return null;
} }
...@@ -32,7 +32,8 @@ define([ ...@@ -32,7 +32,8 @@ define([
} }
return jQuery.merge( [], parsed.childNodes ); return jQuery.merge( [], parsed.childNodes );
}; };
return jQuery.parseHTML;
return jQuery.parseHTML;
}); });
...@@ -2,8 +2,8 @@ define([ ...@@ -2,8 +2,8 @@ define([
"../core" "../core"
], function( jQuery ) { ], function( jQuery ) {
// A method for quickly swapping in/out CSS properties to get correct calculations. // A method for quickly swapping in/out CSS properties to get correct calculations.
jQuery.swap = function( elem, options, callback, args ) { jQuery.swap = function( elem, options, callback, args ) {
var ret, name, var ret, name,
old = {}; old = {};
...@@ -21,7 +21,8 @@ define([ ...@@ -21,7 +21,8 @@ define([
} }
return ret; return ret;
}; };
return jQuery.swap;
return jQuery.swap;
}); });
...@@ -3,9 +3,11 @@ define([ ...@@ -3,9 +3,11 @@ define([
"../selector", "../selector",
"../effects" "../effects"
], function( jQuery ) { ], function( jQuery ) {
jQuery.expr.filters.animated = function( elem ) {
jQuery.expr.filters.animated = function( elem ) {
return jQuery.grep(jQuery.timers, function( fn ) { return jQuery.grep(jQuery.timers, function( fn ) {
return elem === fn.elem; return elem === fn.elem;
}).length; }).length;
}; };
}); });
define([ define([
"../ajax" "../ajax"
], function( jQuery ) { ], function( jQuery ) {
jQuery._evalUrl = function( url ) {
jQuery._evalUrl = function( url ) {
return jQuery.ajax({ return jQuery.ajax({
url: url, url: url,
type: "GET", type: "GET",
...@@ -10,7 +11,8 @@ define([ ...@@ -10,7 +11,8 @@ define([
global: false, global: false,
"throws": true "throws": true
}); });
}; };
return jQuery._evalUrl;
return jQuery._evalUrl;
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment