| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 Copyright 2016 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. |
| 6 --> |
| 7 |
| 8 <polymer-element name="overlay-message-bar" |
| 9 extends="overlay-message" |
| 10 attributes="text autoCloseDisabled transition duration opened |
| 11 maxWidth delay"> |
| 12 |
| 13 <script> |
| 14 'use strict'; |
| 15 |
| 16 (function() { |
| 17 var globalMessageBar = null; |
| 18 |
| 19 Polymer('overlay-message-bar', { |
| 20 created: function() { |
| 21 if (!globalMessageBar) { |
| 22 globalMessageBar = this; |
| 23 } |
| 24 }, |
| 25 |
| 26 updateContent: function(content, config) { |
| 27 globalMessageBar.super([content, config]); |
| 28 }, |
| 29 }); |
| 30 })(); |
| 31 </script> |
| 32 </polymer-element> |
| OLD | NEW |