diff options
Diffstat (limited to 'client/lib/multiSelection.js')
-rw-r--r-- | client/lib/multiSelection.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/lib/multiSelection.js b/client/lib/multiSelection.js index 77f351a4..c2bb2bbc 100644 --- a/client/lib/multiSelection.js +++ b/client/lib/multiSelection.js @@ -100,26 +100,26 @@ MultiSelection = { }, add(cardIds) { - return this.toogle(cardIds, { add: true, remove: false }); + return this.toggle(cardIds, { add: true, remove: false }); }, remove(cardIds) { - return this.toogle(cardIds, { add: false, remove: true }); + return this.toggle(cardIds, { add: false, remove: true }); }, - toogleRange(cardId) { + toggleRange(cardId) { const selectedCards = this._selectedCards.get(); let startRange; this.reset(); if (!this.isActive() || selectedCards.length === 0) { - this.toogle(cardId); + this.toggle(cardId); } else { startRange = selectedCards[selectedCards.length - 1]; - this.toogle(getCardsBetween(startRange, cardId)); + this.toggle(getCardsBetween(startRange, cardId)); } }, - toogle(cardIds, options) { + toggle(cardIds, options) { cardIds = _.isString(cardIds) ? [cardIds] : cardIds; options = _.extend({ add: true, |