From 547ee14f889b8f74d8cc63845727d356b04e2281 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 23 Feb 2019 12:32:00 -0800 Subject: [PATCH] refactor: use ids instead of attrs for delegate/shortcut/focus (#1035) * refactor: use ids instead of attrs for delegate/shortcut/focus fixes #1034 * console log on error * fix test --- src/routes/_components/IconButton.html | 67 ++++++++++--------- .../shortcut/ScrollListShortcuts.html | 8 +-- src/routes/_components/status/Media.html | 14 ++-- .../_components/status/Notification.html | 11 +-- src/routes/_components/status/Status.html | 23 ++++--- .../_components/status/StatusAuthorName.html | 6 +- .../_components/status/StatusContent.html | 4 +- .../_components/status/StatusHeader.html | 7 +- .../status/StatusMediaAttachments.html | 20 +++--- .../_components/status/StatusMentions.html | 5 +- .../status/StatusRelativeDate.html | 6 +- .../_components/status/StatusSidebar.html | 6 +- .../_components/status/StatusSpoiler.html | 10 +-- .../_components/status/StatusToolbar.html | 19 +++--- src/routes/_components/timeline/Timeline.html | 21 +++--- .../computations/timelineComputations.js | 2 +- src/routes/_utils/delegate.js | 2 +- tests/utils.js | 8 ++- 18 files changed, 125 insertions(+), 114 deletions(-) diff --git a/src/routes/_components/IconButton.html b/src/routes/_components/IconButton.html index b48e8e7..235eee3 100644 --- a/src/routes/_components/IconButton.html +++ b/src/routes/_components/IconButton.html @@ -1,32 +1,16 @@ -{#if delegateKey} - -{:else} - -{/if} +