Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: third_party/polymer/v1_0/components-chromium/more-routing/driver/hash-extracted.js

Issue 1162963002: Revert "Rename polymer and cr_elements v0_8 to v1_0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components-chromium/more-routing/driver/hash-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/more-routing/driver/hash-extracted.js b/third_party/polymer/v1_0/components-chromium/more-routing/driver/hash-extracted.js
deleted file mode 100644
index 50abd21db89d44f52ee9caef97ffbca175bf2998..0000000000000000000000000000000000000000
--- a/third_party/polymer/v1_0/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);

Powered by Google App Engine
This is Rietveld 408576698