mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Pass all tests (and load Sizzle fixture correctly) when loading with AMD
Conflicts: src/css.js
This commit is contained in:
@@ -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 ] = {
|
||||
|
||||
Reference in New Issue
Block a user