title: Require.js module not seeing Backbone Router.js
body: <p>In this simple Require/Backbone app</p>
  
  <p><a href="https://github.com/thisishardcoded/require-prob" rel="nofollow">https://github.com/thisishardcoded/require-prob</a></p>
  
  <p>Why does app.js see Router but TestView.js not?</p>
  
  <p>Here is the first line of app.js</p>
  
  <pre><code>define(['router'],function (Router) {
  </code></pre>
  
  <p>and here is the first line of TestView.js</p>
  
  <pre><code>define(['backbone','router'],function(Backbone,Router){
  </code></pre>
  
  <p>Check out the repo for full details, download, run and check console log if you feel so inclined</p>
  
  <p>Thanks!
  Jim</p>
  
  <p>More: Ok, the answer is - because of the order in which it is loaded and even if that were altered I have a circular dependency don't I? TestView needs Router, Router needs TestView.</p>
  
  <p>In which case the solution might be</p>
  
  <pre><code>var r=require('router);
  r.navigate or whatever
  </code></pre>
  
  <p>but, that seems like a shame that Router is not directly accessible everywhere and, is the above method good practice anyway?</p>