mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335.
This commit is contained in:
parent
ca4a007524
commit
49670c5f48
@ -3,13 +3,14 @@ define([
|
||||
"./var/concat",
|
||||
"./var/push",
|
||||
"./var/deletedIds",
|
||||
"./var/strundefined",
|
||||
"./manipulation/var/rcheckableType",
|
||||
"./data/accepts",
|
||||
"./selector",
|
||||
"./traversing",
|
||||
"./event",
|
||||
"./support"
|
||||
], function( jQuery, concat, push, deletedIds, rcheckableType ){
|
||||
], function( jQuery, concat, push, deletedIds, strundefined, rcheckableType ){
|
||||
|
||||
function createSafeFragment( document ) {
|
||||
var list = nodeNames.split( "|" ),
|
||||
|
@ -2521,6 +2521,12 @@ if ( hasPHP ) {
|
||||
|
||||
(function(){
|
||||
// This code must be run before DOM ready!
|
||||
if ( QUnit.urlParams.amd ) {
|
||||
|
||||
// If we load jQuery through requirejs DOM will be already loaded
|
||||
return;
|
||||
}
|
||||
|
||||
var notYetReady, noEarlyExecution,
|
||||
order = [],
|
||||
args = {};
|
||||
|
Loading…
Reference in New Issue
Block a user