| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 cls += ' label-is-floating'; | 267 cls += ' label-is-floating'; |
| 268 } | 268 } |
| 269 return cls; | 269 return cls; |
| 270 }, | 270 }, |
| 271 | 271 |
| 272 _valueChanged: function() { | 272 _valueChanged: function() { |
| 273 // Only update if it's actually different. | 273 // Only update if it's actually different. |
| 274 if (this.$.input && this.$.input.textContent !== this.value) { | 274 if (this.$.input && this.$.input.textContent !== this.value) { |
| 275 this.$.input.textContent = this.value; | 275 this.$.input.textContent = this.value; |
| 276 } | 276 } |
| 277 | 277 this._setHasContent(!!this.value); |
| 278 if (this.value || this.value === 0 || this.value === false) { | |
| 279 this._setHasContent(true); | |
| 280 } else { | |
| 281 this._setHasContent(false); | |
| 282 } | |
| 283 }, | 278 }, |
| 284 }); | 279 }); |
| 285 })(); | 280 })(); |
| OLD | NEW |