| OLD | NEW |
| 1 (function() { | 1 (function() { |
| 2 'use strict'; | 2 'use strict'; |
| 3 | 3 |
| 4 Polymer({ | 4 Polymer({ |
| 5 is: 'paper-dropdown-menu', | 5 is: 'paper-dropdown-menu', |
| 6 | 6 |
| 7 /** | |
| 8 * Fired when the dropdown opens. | |
| 9 * | |
| 10 * @event paper-dropdown-open | |
| 11 */ | |
| 12 | |
| 13 /** | |
| 14 * Fired when the dropdown closes. | |
| 15 * | |
| 16 * @event paper-dropdown-close | |
| 17 */ | |
| 18 | |
| 19 behaviors: [ | 7 behaviors: [ |
| 20 Polymer.IronButtonState, | 8 Polymer.IronButtonState, |
| 21 Polymer.IronControlState, | 9 Polymer.IronControlState, |
| 22 Polymer.IronFormElementBehavior, | 10 Polymer.IronFormElementBehavior, |
| 23 Polymer.IronValidatableBehavior | 11 Polymer.IronValidatableBehavior |
| 24 ], | 12 ], |
| 25 | 13 |
| 26 properties: { | 14 properties: { |
| 27 /** | 15 /** |
| 28 * The derived "label" of the currently selected item. This value | 16 * The derived "label" of the currently selected item. This value |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 251 |
| 264 _openedChanged: function() { | 252 _openedChanged: function() { |
| 265 var openState = this.opened ? 'true' : 'false'; | 253 var openState = this.opened ? 'true' : 'false'; |
| 266 var e = this.contentElement; | 254 var e = this.contentElement; |
| 267 if (e) { | 255 if (e) { |
| 268 e.setAttribute('aria-expanded', openState); | 256 e.setAttribute('aria-expanded', openState); |
| 269 } | 257 } |
| 270 } | 258 } |
| 271 }); | 259 }); |
| 272 })(); | 260 })(); |
| OLD | NEW |