From 25c6c3ad22ba2fb19cc5a14e419730e645561016 Mon Sep 17 00:00:00 2001 From: Jeffrey Biles Date: Tue, 14 Apr 2020 05:54:11 -0700 Subject: [PATCH] shorthand for keys in hash --- src/composition/useEmailSelection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/composition/useEmailSelection.js b/src/composition/useEmailSelection.js index 5e444ee..907b1da 100644 --- a/src/composition/useEmailSelection.js +++ b/src/composition/useEmailSelection.js @@ -15,7 +15,8 @@ export const useEmailSelection = function(){ } const emailSelection = { - emails: emails, + emails, + clear, toggle(id) { if(emails.has(id)) { emails.delete(id) @@ -28,7 +29,6 @@ export const useEmailSelection = function(){ emails.add(email) }) }, - clear: clear, markRead(){ forSelected(e => e.read = true )}, markUnread(){ forSelected(e => e.read = false )}, archive(){ forSelected(e => e.archived = true); clear();},