| OLD | NEW |
| 1 | 1 |
| 2 (function(scope) { | 2 (function(scope) { |
| 3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; | 3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; |
| 4 MoreRouting.HashDriver = HashDriver; | 4 MoreRouting.HashDriver = HashDriver; |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * TODO(nevir): Docs. | 7 * TODO(nevir): Docs. |
| 8 */ | 8 */ |
| 9 function HashDriver() { | 9 function HashDriver() { |
| 10 MoreRouting.Driver.apply(this, arguments); | 10 MoreRouting.Driver.apply(this, arguments); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 HashDriver.prototype._bindEvents = function _bindEvents() { | 27 HashDriver.prototype._bindEvents = function _bindEvents() { |
| 28 window.addEventListener('hashchange', this._read.bind(this)); | 28 window.addEventListener('hashchange', this._read.bind(this)); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 HashDriver.prototype._read = function _read() { | 31 HashDriver.prototype._read = function _read() { |
| 32 this.setCurrentPath(window.location.hash.substr(1) || this.prefix); | 32 this.setCurrentPath(window.location.hash.substr(1) || this.prefix); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 })(window); | 35 })(window); |
| OLD | NEW |