| OLD | NEW |
| 1 (function() { | 1 (function() { |
| 2 'use strict'; | 2 'use strict'; |
| 3 | 3 |
| 4 Polymer({ | 4 Polymer({ |
| 5 is: 'paper-dropdown-menu-light', | 5 is: 'paper-dropdown-menu-light', |
| 6 | 6 |
| 7 behaviors: [ | 7 behaviors: [ |
| 8 Polymer.IronButtonState, | 8 Polymer.IronButtonState, |
| 9 Polymer.IronControlState, | 9 Polymer.IronControlState, |
| 10 Polymer.PaperRippleBehavior, | 10 Polymer.PaperRippleBehavior, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 listeners: { | 128 listeners: { |
| 129 'tap': '_onTap' | 129 'tap': '_onTap' |
| 130 }, | 130 }, |
| 131 | 131 |
| 132 keyBindings: { | 132 keyBindings: { |
| 133 'up down': 'open', | 133 'up down': 'open', |
| 134 'esc': 'close' | 134 'esc': 'close' |
| 135 }, | 135 }, |
| 136 | 136 |
| 137 hostAttributes: { | 137 hostAttributes: { |
| 138 tabindex: 0, |
| 138 role: 'combobox', | 139 role: 'combobox', |
| 139 'aria-autocomplete': 'none', | 140 'aria-autocomplete': 'none', |
| 140 'aria-haspopup': 'true' | 141 'aria-haspopup': 'true' |
| 141 }, | 142 }, |
| 142 | 143 |
| 143 observers: [ | 144 observers: [ |
| 144 '_selectedItemChanged(selectedItem)' | 145 '_selectedItemChanged(selectedItem)' |
| 145 ], | 146 ], |
| 146 | 147 |
| 147 attached: function() { | 148 attached: function() { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 272 |
| 272 _valueChanged: function() { | 273 _valueChanged: function() { |
| 273 // Only update if it's actually different. | 274 // Only update if it's actually different. |
| 274 if (this.$.input && this.$.input.textContent !== this.value) { | 275 if (this.$.input && this.$.input.textContent !== this.value) { |
| 275 this.$.input.textContent = this.value; | 276 this.$.input.textContent = this.value; |
| 276 } | 277 } |
| 277 this._setHasContent(!!this.value); | 278 this._setHasContent(!!this.value); |
| 278 }, | 279 }, |
| 279 }); | 280 }); |
| 280 })(); | 281 })(); |
| OLD | NEW |