mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04: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:
committed by
Timmy Willison
parent
ca4a007524
commit
49670c5f48
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user