aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-08-29 16:18:17 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-08-29 16:25:44 -0400
commit8e6e23925669faea03f83c387a62110d7482e827 (patch)
treee2a6a3a8dd3304674cdb20a8730c47e11e58cf85 /src
parent05d907d1b1ad9ab4789c15060d273bcadae5c91e (diff)
downloadjquery-8e6e23925669faea03f83c387a62110d7482e827.tar.gz
jquery-8e6e23925669faea03f83c387a62110d7482e827.zip
Pass all tests (and load Sizzle fixture correctly) when loading with AMD
Conflicts: src/css.js
Diffstat (limited to 'src')
-rw-r--r--src/ajax/load.js5
-rw-r--r--src/css.js5
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ajax/load.js b/src/ajax/load.js
index 74ccf5c4c..dde1823c0 100644
--- a/src/ajax/load.js
+++ b/src/ajax/load.js
@@ -2,7 +2,10 @@ define([
"../core",
"../ajax",
"../traversing",
- "../selector"
+ "../manipulation",
+ "../selector",
+ // Optional event/alias dependency
+ "../event/alias"
], function( jQuery ) {
// Keep a copy of the old load method
diff --git a/src/css.js b/src/css.js
index f2c0473dd..68ffb8e83 100644
--- a/src/css.js
+++ b/src/css.js
@@ -6,7 +6,9 @@ define([
"./css/defaultDisplay",
"./core/swap",
"./selector", // contains
- "./support"
+ "./support",
+ // Optional
+ "./offset"
], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay ) {
var getStyles, curCSS,
@@ -563,7 +565,6 @@ jQuery(function() {
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
// getComputedStyle returns percent when specified for top/left/bottom/right
// rather than make the css module depend on the offset module, we just check for it here
- // TODO: Optional dependency on offset
if ( !jQuery.support.pixelPosition && jQuery.fn.position ) {
jQuery.each( [ "top", "left" ], function( i, prop ) {
jQuery.cssHooks[ prop ] = {