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

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

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 1 /** @polymerBehavior */
2
3 /** @polymerBehavior */
4 Polymer.IronSelectableBehavior = { 2 Polymer.IronSelectableBehavior = {
5 3
6 properties: { 4 properties: {
7 5
8 /** 6 /**
9 * If you want to use the attribute value of an element for `selected` ins tead of the index, 7 * If you want to use the attribute value of an element for `selected` ins tead of the index,
10 * set this to the name of the attribute. 8 * set this to the name of the attribute.
11 * 9 *
12 * @attribute attrForSelected 10 * @attribute attrForSelected
13 * @type {string} 11 * @type {string}
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 281 }
284 }, 282 },
285 283
286 _itemActivate: function(value, item) { 284 _itemActivate: function(value, item) {
287 if (!this.fire('iron-activate', 285 if (!this.fire('iron-activate',
288 {selected: value, item: item}, {cancelable: true}).defaultPrevented) { 286 {selected: value, item: item}, {cancelable: true}).defaultPrevented) {
289 this.select(value); 287 this.select(value);
290 } 288 }
291 } 289 }
292 290
293 }; 291 };
294
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698