From 8229d1c9e6854658709c9303529a3fcba738a00c Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 29 Apr 2018 18:42:03 -0700 Subject: [PATCH] use svelte shorthand wherever possible (#242) --- routes/_components/ExternalLink.html | 2 +- routes/_components/NonAutoplayImg.html | 2 +- routes/_components/dialog/components/ImageDialog.html | 6 +++--- routes/_components/pseudoVirtualList/PseudoVirtualList.html | 6 +++--- routes/_components/search/SearchResult.html | 2 +- routes/_components/search/StatusSearchResult.html | 2 +- routes/_components/virtualList/VirtualList.html | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/routes/_components/ExternalLink.html b/routes/_components/ExternalLink.html index 5496e0be..bf97cacc 100644 --- a/routes/_components/ExternalLink.html +++ b/routes/_components/ExternalLink.html @@ -1,6 +1,6 @@ {{#if showIcon}} diff --git a/routes/_components/NonAutoplayImg.html b/routes/_components/NonAutoplayImg.html index 1eeb9ba4..24e9d0c6 100644 --- a/routes/_components/NonAutoplayImg.html +++ b/routes/_components/NonAutoplayImg.html @@ -3,7 +3,7 @@ aria-hidden={{ariaHidden}} alt={{alt || ''}} title={{alt || ''}} - src={{src}} + :src on:imgLoad on:imgLoadError /> {{else}} diff --git a/routes/_components/dialog/components/ImageDialog.html b/routes/_components/dialog/components/ImageDialog.html index 56fbf486..56a467c8 100644 --- a/routes/_components/dialog/components/ImageDialog.html +++ b/routes/_components/dialog/components/ImageDialog.html @@ -15,9 +15,9 @@ /> {{else}} {{description diff --git a/routes/_components/pseudoVirtualList/PseudoVirtualList.html b/routes/_components/pseudoVirtualList/PseudoVirtualList.html index cbd86cf2..cacb612f 100644 --- a/routes/_components/pseudoVirtualList/PseudoVirtualList.html +++ b/routes/_components/pseudoVirtualList/PseudoVirtualList.html @@ -1,12 +1,12 @@
{{#each wrappedItems as wrappedItem, i @item}} - + diff --git a/routes/_components/search/StatusSearchResult.html b/routes/_components/search/StatusSearchResult.html index 24a7adac..c3d7bde3 100644 --- a/routes/_components/search/StatusSearchResult.html +++ b/routes/_components/search/StatusSearchResult.html @@ -1,7 +1,7 @@ + :status /> diff --git a/routes/_components/virtualList/VirtualList.html b/routes/_components/virtualList/VirtualList.html index fe7ff1ec..4ea2d3e7 100644 --- a/routes/_components/virtualList/VirtualList.html +++ b/routes/_components/virtualList/VirtualList.html @@ -7,7 +7,7 @@ {{#each $visibleItems as visibleItem @key}}