Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/director/browser.js
@@ -1,4 +1,3 @@

/*
* browser.js: Browser specific functionality for director.
*
@@ -192,7 +191,7 @@ Router.prototype.init = function (r) {
this.handler = function(onChangeEvent) {
var newURL = onChangeEvent && onChangeEvent.newURL || window.location.hash;
var url = self.history === true ? self.getPath() : newURL.replace(/.*#/, '');
self.dispatch('on', url[0] === '/' ? url : '/' + url);
self.dispatch('on', url.charAt(0) === '/' ? url : '/' + url);
};

listener.init(this.handler, this.history);