title: In page anchors and routes on a single page JS application
body: <p>I have a single page application that I wrote with JS.  There's a function bound to hash change events ( <a href="https://github.com/cowboy/jquery-hashchange" rel="nofollow">jquery-hashchange-plugin</a> ) . </p>
  
  <p>On a hash change event I call the matching route's defined controller init method. The problem is that sometime I use the hashes for in-page anchors and I don't want the controller's init method to be called again.</p>
  
  <p>for example the route /#info has the following in-page anchors : /#info/about and /#info/contact.</p>
  
  <p>The only way I can think of solving this issue is by setting the last hash(or route) on every hash change and checking on route change if the route is the same.</p>
  
  <p>Are there any other approaches?</p>