From: Oleg Gaidarenko Date: Fri, 16 Aug 2013 18:36:08 +0000 (-0400) Subject: Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready).... X-Git-Tag: 1.11.0-beta1~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=49670c5f483d944eafdcc494e697f04fd6d9fbbd;p=jquery.git Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335. --- diff --git a/src/manipulation.js b/src/manipulation.js index 8cc7624bf..faa11eb28 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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( "|" ), diff --git a/test/unit/event.js b/test/unit/event.js index 40fb73281..704c49636 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -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 = {};