aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-08-15 20:38:48 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-08-15 20:38:48 -0400
commitcecb52ff5c5c5c6a030b6520dc1e39ec4c6df3d9 (patch)
tree07a6ac4e076f88f4d868a953c9d69a4e784e4d1b /src
parent7877c4fa73120bc6d21a5fcd302a896f03b23876 (diff)
downloadjquery-cecb52ff5c5c5c6a030b6520dc1e39ec4c6df3d9.tar.gz
jquery-cecb52ff5c5c5c6a030b6520dc1e39ec4c6df3d9.zip
Specify support as a dependency wherever it is used. Optimize module order to save 15 bytes.
Diffstat (limited to 'src')
-rw-r--r--src/ajax/xhr.js3
-rw-r--r--src/attributes/attr.js3
-rw-r--r--src/attributes/prop.js3
-rw-r--r--src/attributes/val.js3
-rw-r--r--src/css.js4
-rw-r--r--src/jquery.js4
-rw-r--r--src/manipulation.js3
-rw-r--r--src/offset.js4
-rw-r--r--src/support.js4
9 files changed, 20 insertions, 11 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js
index 6feb94d57..fdc5b08d3 100644
--- a/src/ajax/xhr.js
+++ b/src/ajax/xhr.js
@@ -1,6 +1,7 @@
define([
"../core",
- "../ajax"
+ "../ajax",
+ "../support"
], function( jQuery ) {
jQuery.ajaxSettings.xhr = function() {
diff --git a/src/attributes/attr.js b/src/attributes/attr.js
index 4e0102bfa..202c7028b 100644
--- a/src/attributes/attr.js
+++ b/src/attributes/attr.js
@@ -2,7 +2,8 @@ define([
"../core",
"../var/rnotwhite",
"../var/strundefined",
- "../selector"
+ "../selector",
+ "../support"
], function( jQuery, rnotwhite, strundefined ) {
var nodeHook, boolHook;
diff --git a/src/attributes/prop.js b/src/attributes/prop.js
index f7ce11f97..95462bbbb 100644
--- a/src/attributes/prop.js
+++ b/src/attributes/prop.js
@@ -1,5 +1,6 @@
define([
- "../core"
+ "../core",
+ "../support"
], function( jQuery ) {
var rfocusable = /^(?:input|select|textarea|button)$/i;
diff --git a/src/attributes/val.js b/src/attributes/val.js
index fd8badeb2..73a3bf3ea 100644
--- a/src/attributes/val.js
+++ b/src/attributes/val.js
@@ -1,5 +1,6 @@
define([
- "../core"
+ "../core",
+ "../support"
], function( jQuery ) {
var rreturn = /\r/g;
diff --git a/src/css.js b/src/css.js
index f35700247..16c093bd7 100644
--- a/src/css.js
+++ b/src/css.js
@@ -6,7 +6,9 @@ define([
"./css/defaultDisplay",
"./data/var/data_priv",
"./core/swap",
- "./selector" // contains
+ "./core/ready",
+ "./selector", // contains
+ "./support"
], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay, data_priv ) {
var curCSS,
// swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
diff --git a/src/jquery.js b/src/jquery.js
index ce3ad8e2f..644f29255 100644
--- a/src/jquery.js
+++ b/src/jquery.js
@@ -1,10 +1,11 @@
define([
"./core",
"./selector",
+ "./traversing",
"./callbacks",
"./deferred",
"./core/ready",
- "./traversing",
+ "./support",
"./data",
"./queue",
"./queue/delay",
@@ -26,7 +27,6 @@ define([
"./effects/animated-selector",
"./offset",
"./dimensions",
- "./support",
"./deprecated"
], function( jQuery ) {
diff --git a/src/manipulation.js b/src/manipulation.js
index 8eabb1979..89cc46c62 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -8,7 +8,8 @@ define([
"./data/accepts",
"./selector",
"./traversing",
- "./event"
+ "./event",
+ "./support"
], function( jQuery, concat, push, rcheckableType, data_priv, data_user ){
var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
diff --git a/src/offset.js b/src/offset.js
index 60ceb41ff..45a4a7fa8 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -2,7 +2,7 @@ define([
"./core",
"./var/strundefined",
"./css",
- "./selector"
+ "./selector" // contains
], function( jQuery, strundefined ) {
var docElem = window.document.documentElement;
@@ -136,7 +136,7 @@ jQuery.fn.extend({
return this.map(function() {
var offsetParent = this.offsetParent || docElem;
- while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
+ while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {
offsetParent = offsetParent.offsetParent;
}
diff --git a/src/support.js b/src/support.js
index a02e97d2e..5880e2310 100644
--- a/src/support.js
+++ b/src/support.js
@@ -1,6 +1,8 @@
define([
"./core",
- "./core/swap"
+ "./core/swap",
+ // This is listed as a dependency for build order, but it's still optional in builds
+ "./core/ready"
], function( jQuery ) {
jQuery.support = (function( support ) {