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

Unified Diff: third_party/polymer/v0_8/components-chromium/more-routing/more-route-context-aware-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/more-route-context-aware-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/more-routing/more-route-context-aware-extracted.js b/third_party/polymer/v0_8/components-chromium/more-routing/more-route-context-aware-extracted.js
deleted file mode 100644
index 38377c156ccf299df0b55114807efa16ebedce67..0000000000000000000000000000000000000000
--- a/third_party/polymer/v0_8/components-chromium/more-routing/more-route-context-aware-extracted.js
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
- MoreRouting.ContextAware = {
-
- /** @override */
- ready: function() {
- this._makeRoutingReady();
- },
-
- /**
- * Calls `routingReady`, and ensures that it is called in a top-down manner.
- *
- * We need to be sure that parent nodes have `routingReady` triggered before
- * their children so that they can properly configure nested routes.
- *
- * Unfortunately, `ready` is sometimes bottom-up, sometimes top-down.
- * Ideally, this wouldn't be necessary.
- *
- * @see https://github.com/Polymer/polymer/pull/1448
- */
- _makeRoutingReady: function() {
- if (this.routingIsReady) return;
-
- var node = this;
- while (node = Polymer.dom(node).parentNode) {
- if (typeof node._makeRoutingReady === 'function') break;
- }
- if (node) node._makeRoutingReady();
-
- this.parentRoute = this._findParentRoute();
- this.routingIsReady = true;
- if (typeof this.routingReady === 'function') this.routingReady();
- },
-
- _findParentRoute: function() {
- var node = this;
- while (node) {
- node = Polymer.dom(node).parentNode;
- if (node && node.nodeType !== Node.ELEMENT_NODE) {
- node = node.host;
- }
-
- var route = node && node.moreRouteContext;
- if (route instanceof MoreRouting.Route) {
- return route;
- }
- }
- return null;
- },
-
- };
-

Powered by Google App Engine
This is Rietveld 408576698