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

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

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1
2 (function(scope) { 1 (function(scope) {
3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; 2 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {};
4 MoreRouting.HashDriver = HashDriver; 3 MoreRouting.HashDriver = HashDriver;
5 4
6 /** 5 /**
7 * TODO(nevir): Docs. 6 * TODO(nevir): Docs.
8 */ 7 */
9 function HashDriver() { 8 function HashDriver() {
10 MoreRouting.Driver.apply(this, arguments); 9 MoreRouting.Driver.apply(this, arguments);
11 this._bindEvents(); 10 this._bindEvents();
(...skipping 13 matching lines...) Expand all
25 }; 24 };
26 25
27 HashDriver.prototype._bindEvents = function _bindEvents() { 26 HashDriver.prototype._bindEvents = function _bindEvents() {
28 window.addEventListener('hashchange', this._read.bind(this)); 27 window.addEventListener('hashchange', this._read.bind(this));
29 }; 28 };
30 29
31 HashDriver.prototype._read = function _read() { 30 HashDriver.prototype._read = function _read() {
32 this.setCurrentPath(window.location.hash.substr(1) || this.prefix); 31 this.setCurrentPath(window.location.hash.substr(1) || this.prefix);
33 }; 32 };
34 33
35 })(window); 34 })(window);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698