Modernizer+YepNope:不加载我的外部jQuery?

Modernizer+YepNope:不加载我的外部jQuery?,jquery,modernizr,yepnope,Jquery,Modernizr,Yepnope,情况很简单:我正在使用Wordpress的Bones框架。如果我将jQuery放在scripts.js文件中,它们运行良好。一切正常。如果仅当满足yep或nope时才尝试加载jQuery调用,则不会发生任何事情。我做错了什么 script.js // Modernizr.load loading the right scripts only if you need them Modernizr.load([ { // Let's check something simple

情况很简单:我正在使用Wordpress的Bones框架。如果我将jQuery放在scripts.js文件中,它们运行良好。一切正常。如果仅当满足yep或nope时才尝试加载jQuery调用,则不会发生任何事情。我做错了什么

script.js

// Modernizr.load loading the right scripts only if you need them
Modernizr.load([
    {
    // Let's check something simple
    test : Modernizr.borderradius,
    // this should then satisfy the yep and load this script
    yep : ['libs/jq-desk-calls.js']
    }
]);

jQuery(document).ready(function($) {
    // if I put the code from jq-desk-calls.js here, it works fine
}
我正在使用一个简单的测试来确保它应该触发yep。但什么也没发生。它调用的文件正是我可以在文档中使用的代码。ready调用并正常工作。这与从外部文件调用document.ready有关吗

jq-desk-calls.js

$(document).ready(function() {
   //LOGO ROLL
    $('li#menu-item-477').append('<div class="emblemhover"></div>');
}