| Index: appengine/chromium_rietveld/new_static/components/cr-title-handler.html
|
| diff --git a/appengine/chromium_rietveld/new_static/components/cr-title-handler.html b/appengine/chromium_rietveld/new_static/components/cr-title-handler.html
|
| deleted file mode 100644
|
| index b21afc9d535cc7cffd834fda9feda0a5e15d790f..0000000000000000000000000000000000000000
|
| --- a/appengine/chromium_rietveld/new_static/components/cr-title-handler.html
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -<!-- Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| -Use of this source code is governed by a BSD-style license that can be
|
| -found in the LICENSE file. -->
|
| -
|
| -<polymer-element name="cr-title-handler" attributes="titlePrefix titleSuffix">
|
| - <template>
|
| - <style>
|
| - :host { display: none; }
|
| - </style>
|
| - </template>
|
| - <script>
|
| - Polymer("cr-title-handler", {
|
| - created: function() {
|
| - this.titlePrefix = "";
|
| - this.titleSuffix = "";
|
| - this.handleTitleChange = this.handleTitleChange.bind(this);
|
| - },
|
| - attached: function() {
|
| - document.addEventListener("title-change", this.handleTitleChange);
|
| - },
|
| - detached: function() {
|
| - document.removeEventListener("title-change", this.handleTitleChange);
|
| - },
|
| - handleTitleChange: function(event) {
|
| - var value = event.detail.value || "";
|
| - var title = this.titlePrefix;
|
| - if (title.length && value.length)
|
| - title += ": ";
|
| - if (value.length)
|
| - title += value;
|
| - if (this.titleSuffix)
|
| - title += " - " + this.titleSuffix;
|
| - document.title = title;
|
| - },
|
| - });
|
| - </script>
|
| -</polymer-element>
|
|
|