Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-dropdown-menu/paper-dropdown-menu-light-extracted.js

Issue 1901343004: [Polymer] update third_party polymer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new pull Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698