Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335.

This commit is contained in:
Oleg Gaidarenko
2013-08-16 14:36:08 -04:00
committed by Timmy Willison
parent ca4a007524
commit 49670c5f48
2 changed files with 8 additions and 1 deletions

View File

@@ -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 = {};