Fix a recurrent English typo

This commit is contained in:
Maxime Quandalle 2015-09-06 22:47:29 +02:00
parent 54bc9d0dcb
commit 74fba0a817
10 changed files with 25 additions and 25 deletions

View file

@ -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,