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