| Index: third_party/polymer/v1_0/components/more-routing/driver/hash.html
|
| diff --git a/third_party/polymer/v1_0/components/more-routing/driver/hash.html b/third_party/polymer/v1_0/components/more-routing/driver/hash.html
|
| deleted file mode 100644
|
| index e20ded15e4abb8d631b6ea8d829000f2ae6fb850..0000000000000000000000000000000000000000
|
| --- a/third_party/polymer/v1_0/components/more-routing/driver/hash.html
|
| +++ /dev/null
|
| @@ -1,46 +0,0 @@
|
| -<!--
|
| -Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
| -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
| -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
| -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
| -Code distributed by Google as part of the polymer project is also
|
| -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
| --->
|
| -<link rel="import" href="../driver.html">
|
| -
|
| -<script>
|
| -(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);
|
| -</script>
|
|
|