Pass all tests (and load Sizzle fixture correctly) when loading with AMD

Conflicts:
	src/css.js
This commit is contained in:
Timmy Willison
2013-08-29 16:18:17 -04:00
parent 05d907d1b1
commit 8e6e239256
8 changed files with 166 additions and 152 deletions

View File

@@ -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 ] = {