]> source.dussan.org Git - jquery.git/commitdiff
Specify support as a dependency wherever it is used. Optimize module order to save...
authorTimmy Willison <timmywillisn@gmail.com>
Fri, 16 Aug 2013 00:38:48 +0000 (20:38 -0400)
committerTimmy Willison <timmywillisn@gmail.com>
Fri, 16 Aug 2013 00:41:43 +0000 (20:41 -0400)
Conflicts:
src/css.js
src/manipulation.js
src/offset.js
src/support.js

README.md
src/ajax/xhr.js
src/attributes/attr.js
src/attributes/prop.js
src/attributes/val.js
src/css.js
src/jquery.js
src/manipulation.js
src/offset.js
src/support.js

index 1ce0b0d8b8d2c8df3de633aba6da441d428ac75d..65cb95d7feb4f36b91fdb03c364532fbc052ccd8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -86,7 +86,7 @@ Some example modules that can be excluded are:
 - **offset**: The `.offset()`, `.position()`, `.offsetParent()`, `.scrollLeft()`, and `.scrollTop()` methods.
 - **wrap**: The `.wrap()`, `.wrapAll()`, `.wrapInner()`, and `.unwrap()` methods.
 - **exports/amd**: Exclude the AMD definition.
-- **core/ready**: Exclude the ready module if you place your scripts at the end of the body. Any ready callbacks will simply be called immediately.
+- **core/ready**: Exclude the ready module if you place your scripts at the end of the body. Any ready callbacks bound with `jQuery()` will simply be called immediately. However, `jQuery(document).ready()` will not be a function and `.on("ready", ...)` or similar will not be triggered.
 - **deferred**: Exclude jQuery.Deferred. This also removes jQuery.Callbacks. *Note* that modules that depend on jQuery.Deferred(AJAX, effects, core/ready) will not be removed and will still expect jQuery.Deferred to be there. Include your own jQuery.Deferred implementation or exclude those modules as well (`grunt custom:-deferred,-ajax,-effects,-core/ready`).
 - **support**: Excluding the support module is not recommended, but possible. It's your responsibility to either remove modules that use jQuery.support (many of them) or replace the values wherever jQuery.support is used. This is mainly only useful when building a barebones version of jQuery.
 
index 637df0082d0c01b70f999772c739ba08525b8b31..ab5bd5e1edcc13461560660e248231b3b8c49717 100644 (file)
@@ -1,6 +1,7 @@
 define([
        "../core",
-       "../ajax"
+       "../ajax",
+       "../support"
 ], function( jQuery ) {
 
 var xhrCallbacks, xhrSupported,
index 96bfb756fe38384dfc587dd86270ecee0d08d671..b282d11230c2b2ef20137d7ba5b6fd6a4a04e12a 100644 (file)
@@ -2,7 +2,8 @@ define([
        "../core",
        "../var/rnotwhite",
        "../var/strundefined",
-       "../selector"
+       "../selector",
+       "../support"
 ], function( jQuery, rnotwhite, strundefined ) {
 
 var nodeHook, boolHook,
index a517b0d3a26eee86e12eb06a7d8119c51750a3d0..490f2ef4a521ffde16c35c1f0682238aa95041ca 100644 (file)
@@ -1,5 +1,6 @@
 define([
-       "../core"
+       "../core",
+       "../support"
 ], function( jQuery ) {
 
 var rfocusable = /^(?:input|select|textarea|button|object)$/i,
index 58fe56c3caf1c9be586c81b0bbb6a79591b3580a..074d23f8c090438663c526d1b025c4493003db81 100644 (file)
@@ -1,5 +1,6 @@
 define([
-       "../core"
+       "../core",
+       "../support"
 ], function( jQuery ) {
 
 var rreturn = /\r/g;
index ad345b0622f421fe5bdd0e136f2abdf6e60400c4..86399aa51b9ea8cb1388f341e00cd2a8a95b439f 100644 (file)
@@ -5,7 +5,8 @@ define([
        "./css/var/isHidden",
        "./css/defaultDisplay",
        "./core/swap",
-       "./selector" // contains
+       "./selector", // contains
+       "./support"
 ], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay ) {
 
 var getStyles, curCSS,
index ce3ad8e2fbf93fa35a0a959ce06f33c30b81b5c3..644f2925561f43162dad842630d31c8c9f811ccf 100644 (file)
@@ -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 ) {
 
index d5bdacb457988f6406a1bed3676073272e419bda..8cc7624bfabdc65b0213b3bd5ab341efc2132fb0 100644 (file)
@@ -7,7 +7,8 @@ define([
        "./data/accepts",
        "./selector",
        "./traversing",
-       "./event"
+       "./event",
+       "./support"
 ], function( jQuery, concat, push, deletedIds, rcheckableType ){
 
 function createSafeFragment( document ) {
index 67b5db4541479b6323838898de85a1d26b69482c..9172a715d05d70e1e1ad375816a777745fde7a05 100644 (file)
@@ -2,7 +2,7 @@ define([
        "./core",
        "./var/strundefined",
        "./css",
-       "./selector"
+       "./selector" // contains
 ], function( jQuery, strundefined ) {
 
 var docElem = window.document.documentElement;
@@ -133,7 +133,8 @@ jQuery.fn.extend({
        offsetParent: function() {
                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;
                        }
                        return offsetParent || docElem;
index 147cb4ddf85ce60bb56fd3a740d1a4a63ad50175..705a5b0fd9fb720d653c518f070bcbb401b24d64 100644 (file)
@@ -1,7 +1,9 @@
 define([
        "./core",
        "./var/strundefined",
-       "./core/swap"
+       "./core/swap",
+       // This is listed as a dependency for build order, but it's still optional in builds
+       "./core/ready"
 ], function( jQuery, strundefined ) {
 
 jQuery.support = (function( support ) {