title: No define call function in Require.js
body: <p>I have errors loading <code>jquery-menu-aim</code> and <code>bootstrap</code> with Require.js in backbone project.</p>
  
  <p>Here are what I had defined in main.js of :</p>
  
  <pre><code>requirejs.config({
      enforceDefine: true,
      paths: {
        //declare path jquery, backbone, underscore,and other library here....
        "jquery-menu-aim" : "libs/jquery/jquery.menu-aim",
        "bootstrap" : "libs/jquery/bootstrap.min"
      },
      shim: {
        "jquery-menu-aim" : {
          deps: ["jquery"] ,
          exports: "Jquerymenuaim"
         },
         "bootstrap" : {
          deps: ["jquery"] ,
          exports: "Bootstrap"
        }
     }
  });
  </code></pre>
  
  <p>Errors  : Uncaught Error: No define call for jquery-menu-aim
            <a href="http://requirejs.org/docs/errors.html#nodefine" rel="nofollow">http://requirejs.org/docs/errors.html#nodefine</a> require.js:8
            Uncaught Error: No define call for bootstrap
            <a href="http://requirejs.org/docs/errors.html#nodefine" rel="nofollow">http://requirejs.org/docs/errors.html#nodefine</a> </p>
  
  <p>When I defined it in my view. I think maybe I was wrong in defining library in Shim config, but I can not found it in google.</p>
  
  <p>Any help would be appreciated. Thanks.</p>