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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-selector/iron-multi-selectable-extracted.js

Issue 1862213002: Roll third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 /** @polymerBehavior Polymer.IronMultiSelectableBehavior */ 1 /** @polymerBehavior Polymer.IronMultiSelectableBehavior */
2 Polymer.IronMultiSelectableBehaviorImpl = { 2 Polymer.IronMultiSelectableBehaviorImpl = {
3 properties: { 3 properties: {
4 4
5 /** 5 /**
6 * If true, multiple selections are allowed. 6 * If true, multiple selections are allowed.
7 */ 7 */
8 multi: { 8 multi: {
9 type: Boolean, 9 type: Boolean,
10 value: false, 10 value: false,
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 selectedItems: { 26 selectedItems: {
27 type: Array, 27 type: Array,
28 readOnly: true, 28 readOnly: true,
29 notify: true 29 notify: true
30 }, 30 },
31 31
32 }, 32 },
33 33
34 observers: [ 34 observers: [
35 '_updateSelected(selectedValues)' 35 '_updateSelected(selectedValues.splices)'
36 ], 36 ],
37 37
38 /** 38 /**
39 * Selects the given value. If the `multi` property is true, then the select ed state of the 39 * Selects the given value. If the `multi` property is true, then the select ed state of the
40 * `value` will be toggled; otherwise the `value` will be selected. 40 * `value` will be toggled; otherwise the `value` will be selected.
41 * 41 *
42 * @method select 42 * @method select
43 * @param {string|number} value the value to select. 43 * @param {string|number} value the value to select.
44 */ 44 */
45 select: function(value) { 45 select: function(value) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 return this._valueToItem(value); 123 return this._valueToItem(value);
124 }, this); 124 }, this);
125 } 125 }
126 }; 126 };
127 127
128 /** @polymerBehavior */ 128 /** @polymerBehavior */
129 Polymer.IronMultiSelectableBehavior = [ 129 Polymer.IronMultiSelectableBehavior = [
130 Polymer.IronSelectableBehavior, 130 Polymer.IronSelectableBehavior,
131 Polymer.IronMultiSelectableBehaviorImpl 131 Polymer.IronMultiSelectableBehaviorImpl
132 ]; 132 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698