3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {};
4 MoreRouting.PathDriver = PathDriver;
9 function PathDriver() {
10 MoreRouting.Driver.apply(this, arguments);
14 PathDriver.prototype = Object.create(MoreRouting.Driver.prototype);
16 PathDriver.prototype.navigateToUrl = function navigateToUrl(url) {
17 window.history.pushState({}, '', url);
21 PathDriver.prototype._bindEvents = function _bindEvents() {
22 window.addEventListener('popstate', this._read.bind(this));
25 PathDriver.prototype._read = function _read() {
26 this.setCurrentPath(window.location.pathname);