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

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

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 years, 3 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 /**
2 * @param {!Function} selectCallback 4 * @param {!Function} selectCallback
3 * @constructor 5 * @constructor
4 */ 6 */
5 Polymer.IronSelection = function(selectCallback) { 7 Polymer.IronSelection = function(selectCallback) {
6 this.selection = []; 8 this.selection = [];
7 this.selectCallback = selectCallback; 9 this.selectCallback = selectCallback;
8 }; 10 };
9 11
10 Polymer.IronSelection.prototype = { 12 Polymer.IronSelection.prototype = {
11 13
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 /** 91 /**
90 * Toggles the selection state for `item`. 92 * Toggles the selection state for `item`.
91 * 93 *
92 * @method toggle 94 * @method toggle
93 * @param {*} item The item to toggle. 95 * @param {*} item The item to toggle.
94 */ 96 */
95 toggle: function(item) { 97 toggle: function(item) {
96 this.setItemSelected(item, !this.isSelected(item)); 98 this.setItemSelected(item, !this.isSelected(item));
97 } 99 }
98 100
99 }; 101 };
102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698