| OLD | NEW |
| 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 Loading... |
| 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 | |
| OLD | NEW |