From 64637e0a3283a86fbce8860293b51c2d133aea82 Mon Sep 17 00:00:00 2001 From: William Chou Date: Thu, 20 May 2021 20:22:18 -0400 Subject: [PATCH] Fix lint. --- extensions/amp-list/0.1/amp-list.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/amp-list/0.1/amp-list.js b/extensions/amp-list/0.1/amp-list.js index 56ad9803db04..d50f431abc0d 100644 --- a/extensions/amp-list/0.1/amp-list.js +++ b/extensions/amp-list/0.1/amp-list.js @@ -322,12 +322,12 @@ export class AmpList extends AMP.BaseElement { /** * A "diffable placeholder" is the child container
(which is usually created by the amp-list * to hold the rendered children). It serves the same purpose as a placeholder, except it can be diffed. - * + * * For example: * *
I'm displayed before render.
*
- * + * * *
I'm displayed before render.
*
@@ -336,12 +336,12 @@ export class AmpList extends AMP.BaseElement { * @private */ queryDiffablePlaceholder_() { - const roleSelector = this.element.hasAttribute('single-item') ? '' : '[role=list]' - return scopedQuerySelector( - this.element, - // Don't select other special
children used for placeholders/fallback/etc. - `> div${roleSelector}:not([placeholder]):not([fallback]):not([fetch-error])` - ); + let selector = this.element.hasAttribute('single-item') + ? '> div' + : '> div[role=list]'; + // Don't select other special
children used for placeholders/fallback/etc. + selector += ':not([placeholder]):not([fallback]):not([fetch-error])'; + return scopedQuerySelector(this.element, selector); } /**