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

@ -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( "|" ),

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