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

Unified Diff: third_party/polymer/v0_8/components-chromium/more-routing/driver/path-extracted.js

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake 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/v0_8/components-chromium/more-routing/driver/path-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/more-routing/driver/path-extracted.js b/third_party/polymer/v0_8/components-chromium/more-routing/driver/path-extracted.js
deleted file mode 100644
index ad64fd57fac6268f16c4e2a139c3d84bed41b4cf..0000000000000000000000000000000000000000
--- a/third_party/polymer/v0_8/components-chromium/more-routing/driver/path-extracted.js
+++ /dev/null
@@ -1,29 +0,0 @@
-
-(function(scope) {
-var MoreRouting = scope.MoreRouting = scope.MoreRouting || {};
-MoreRouting.PathDriver = PathDriver;
-
-/**
- * TODO(nevir): Docs.
- */
-function PathDriver() {
- MoreRouting.Driver.apply(this, arguments);
- this._bindEvents();
- this._read();
-}
-PathDriver.prototype = Object.create(MoreRouting.Driver.prototype);
-
-PathDriver.prototype.navigateToUrl = function navigateToUrl(url) {
- window.history.pushState({}, '', url);
- this._read();
-};
-
-PathDriver.prototype._bindEvents = function _bindEvents() {
- window.addEventListener('popstate', this._read.bind(this));
-};
-
-PathDriver.prototype._read = function _read() {
- this.setCurrentPath(window.location.pathname);
-};
-
-})(window);

Powered by Google App Engine
This is Rietveld 408576698