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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-selector/iron-selection-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 /**
2
3 /**
4 * @param {!Function} selectCallback 2 * @param {!Function} selectCallback
5 * @constructor 3 * @constructor
6 */ 4 */
7 Polymer.IronSelection = function(selectCallback) { 5 Polymer.IronSelection = function(selectCallback) {
8 this.selection = []; 6 this.selection = [];
9 this.selectCallback = selectCallback; 7 this.selectCallback = selectCallback;
10 }; 8 };
11 9
12 Polymer.IronSelection.prototype = { 10 Polymer.IronSelection.prototype = {
13 11
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 /** 89 /**
92 * Toggles the selection state for `item`. 90 * Toggles the selection state for `item`.
93 * 91 *
94 * @method toggle 92 * @method toggle
95 * @param {*} item The item to toggle. 93 * @param {*} item The item to toggle.
96 */ 94 */
97 toggle: function(item) { 95 toggle: function(item) {
98 this.setItemSelected(item, !this.isSelected(item)); 96 this.setItemSelected(item, !this.isSelected(item));
99 } 97 }
100 98
101 }; 99 };
102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698