2 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {};
3 MoreRouting.PathDriver = PathDriver;
8 function PathDriver() {
9 MoreRouting.Driver.apply(this, arguments);
13 PathDriver.prototype = Object.create(MoreRouting.Driver.prototype);
15 PathDriver.prototype.navigateToUrl = function navigateToUrl(url) {
16 window.history.pushState({}, '', url);
20 PathDriver.prototype._bindEvents = function _bindEvents() {
21 window.addEventListener('popstate', this._read.bind(this));
24 PathDriver.prototype._read = function _read() {
25 this.setCurrentPath(window.location.pathname);