Index: third_party/polymer/v0_8/components-chromium/more-routing/driver/hash-extracted.js |
diff --git a/third_party/polymer/v0_8/components-chromium/more-routing/driver/hash-extracted.js b/third_party/polymer/v0_8/components-chromium/more-routing/driver/hash-extracted.js |
deleted file mode 100644 |
index 50abd21db89d44f52ee9caef97ffbca175bf2998..0000000000000000000000000000000000000000 |
--- a/third_party/polymer/v0_8/components-chromium/more-routing/driver/hash-extracted.js |
+++ /dev/null |
@@ -1,35 +0,0 @@ |
- |
-(function(scope) { |
-var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; |
-MoreRouting.HashDriver = HashDriver; |
- |
-/** |
- * TODO(nevir): Docs. |
- */ |
-function HashDriver() { |
- MoreRouting.Driver.apply(this, arguments); |
- this._bindEvents(); |
- this._read(); |
-} |
-HashDriver.prototype = Object.create(MoreRouting.Driver.prototype); |
- |
-// By default, we prefer hashbang; but you can prefix with any string you wish. |
-HashDriver.prototype.prefix = '!/'; |
- |
-HashDriver.prototype.urlForParts = function urlForParts(parts) { |
- return '#' + MoreRouting.Driver.prototype.urlForParts.call(this, parts); |
-}; |
- |
-HashDriver.prototype.navigateToUrl = function navigateToUrl(url) { |
- window.location.hash = url; |
-}; |
- |
-HashDriver.prototype._bindEvents = function _bindEvents() { |
- window.addEventListener('hashchange', this._read.bind(this)); |
-}; |
- |
-HashDriver.prototype._read = function _read() { |
- this.setCurrentPath(window.location.hash.substr(1) || this.prefix); |
-}; |
- |
-})(window); |