Skip to content
Browse files

fixes tests and hash regex from pull

  • Loading branch information...
1 parent 08381cf commit b2c6cc4d38eef4ce600151bef247bd69be4c9e99 Kyle Winter committed Jun 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/director/browser.js
  2. +1 −1 test/browser/routes-harness.html
View
2 lib/director/browser.js
@@ -159,7 +159,7 @@ var Router = exports.Router = function (routes) {
Router.prototype.init = function (r) {
var self = this;
this.handler = function(onChangeEvent) {
- var hash = onChangeEvent.newURL.replace(/^#/, '');
+ var hash = onChangeEvent.newURL.replace(/.*#/, '');
self.dispatch('on', hash);
};
View
2 test/browser/routes-harness.html
@@ -17,7 +17,7 @@ <h2 id="qunit-userAgent"></h2>
<script type="text/javascript" src="helpers/jquery.js"></script>
<script type="text/javascript" src="helpers/qunit.js"></script>
-<script type="text/javascript" src="../../build/director-1.0.7.js"></script>
+<script type="text/javascript" src="../../build/director-1.0.11.js"></script>
<script type="text/javascript" src="helpers/api.js"></script>
<script type="text/javascript" src="routes-test.js"></script>
</body>

0 comments on commit b2c6cc4

Please sign in to comment.
Something went wrong with that request. Please try again.