From 74fba0a817b414579f3223ac508b4fdb8faced98 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 6 Sep 2015 22:47:29 +0200 Subject: Fix a recurrent English typo --- client/lib/filter.js | 2 +- client/lib/keyboard.js | 6 +++--- client/lib/multiSelection.js | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'client/lib') diff --git a/client/lib/filter.js b/client/lib/filter.js index 532ef236..f7baf480 100644 --- a/client/lib/filter.js +++ b/client/lib/filter.js @@ -37,7 +37,7 @@ class SetFilter { } } - toogle(val) { + toggle(val) { if (this._indexOfVal(val) === -1) { this.add(val); } else { diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js index 0bb9c380..af5fb7a2 100644 --- a/client/lib/keyboard.js +++ b/client/lib/keyboard.js @@ -6,14 +6,14 @@ Mousetrap.bind('?', () => { }); Mousetrap.bind('w', () => { - Sidebar.toogle(); + Sidebar.toggle(); }); Mousetrap.bind('q', () => { const currentBoardId = Session.get('currentBoard'); const currentUserId = Meteor.userId(); if (currentBoardId && currentUserId) { - Filter.members.toogle(currentUserId); + Filter.members.toggle(currentUserId); } }); @@ -39,7 +39,7 @@ Mousetrap.bind(['down', 'up'], (evt, key) => { Template.keyboardShortcuts.helpers({ mapping: [{ keys: ['W'], - action: 'shortcut-toogle-sidebar', + action: 'shortcut-toggle-sidebar', }, { keys: ['Q'], action: 'shortcut-filter-my-cards', 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, -- cgit v1.2.3-1-g7c22