title: Loading spin.js with require.js
body: <p>I recently started a Javascript project and I am now moving it to require.js. Everything worked fine so far except for the <a href="http://fgnass.github.com/spin.js/" rel="nofollow">spin.js</a> library. I get the following error message when I try to access anything spin.js related:</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: Spinner is not defined</p>
  </blockquote>
  
  <p>My <code>requirejs.config</code> looks like this:</p>
  
  <pre><code>requirejs.config({
  
      baseUrl: 'js',
  
          paths: {
              'jquery': 'lib/jquery',
              'spin': 'lib/spin',
      },
  
      shim: {
          'jquery' : {
              deps: [],
          },
  
          'spin' : {
              deps: [],
              exports: 'Spinner'
          },
      }
  });  
  </code></pre>
  
  <p>A sample module looks like this:</p>
  
  <pre><code>require(['spin'], 
      function(Spinner)
      {   
          new Spinner();
      }
  );
  </code></pre>
  
  <p>I'm using the <code>shim config</code> because I have some other modules with dependencies. Everything else seems to be loading fine though. What am I missing here?</p>
  
  <h2>Edit:</h2>
  
  <p>As Alex pointed out my library inclusion was wrong. For everyone having troubles with understanding backbone.js and require.js I suggest <a href="https://github.com/addyosmani/backbone-fundamentals" rel="nofollow">this book</a>, especially the chapter about modular  development.</p>