| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('downloads', function() { | 5 cr.define('downloads', function() { |
| 6 var Toolbar = Polymer({ | 6 var Toolbar = Polymer({ |
| 7 is: 'downloads-toolbar', | 7 is: 'downloads-toolbar', |
| 8 | 8 |
| 9 attached: function() { | 9 attached: function() { |
| 10 // isRTL() only works after i18n_template.js runs to set <html dir>. | 10 // isRTL() only works after i18n_template.js runs to set <html dir>. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 /** @private */ | 105 /** @private */ |
| 106 updateClearAll_: function() { | 106 updateClearAll_: function() { |
| 107 this.$$('#actions .clear-all').hidden = !this.canClearAll(); | 107 this.$$('#actions .clear-all').hidden = !this.canClearAll(); |
| 108 this.$$('paper-menu .clear-all').hidden = !this.canClearAll(); | 108 this.$$('paper-menu .clear-all').hidden = !this.canClearAll(); |
| 109 }, | 109 }, |
| 110 }); | 110 }); |
| 111 | 111 |
| 112 return {Toolbar: Toolbar}; | 112 return {Toolbar: Toolbar}; |
| 113 }); | 113 }); |
| 114 | |
| 115 // TODO(dbeam): https://github.com/PolymerElements/iron-dropdown/pull/16/files | |
| 116 /** @suppress {checkTypes} */ | |
| 117 (function() { | |
| 118 Polymer.IronDropdownScrollManager.pushScrollLock = function() {}; | |
| 119 })(); | |
| OLD | NEW |