Skip to content

Commit

Permalink
report(refactor): Move drop down logic into a separate class (#9564)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnemau authored and paulirish committed Aug 16, 2019
1 parent 48be37a commit 2706df0
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 211 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ class PerformanceCategoryRenderer extends CategoryRenderer {

// Metric descriptions toggle.
const toggleTmpl = this.dom.cloneTemplate('#tmpl-lh-metrics-toggle', this.templateContext);
const toggleEl = this.dom.find('.lh-metrics-toggle', toggleTmpl);
metricAuditsEl.append(...toggleEl.childNodes);
const _toggleEl = this.dom.find('.lh-metrics-toggle', toggleTmpl);
metricAuditsEl.append(..._toggleEl.childNodes);

const metricAudits = category.auditRefs.filter(audit => audit.group === 'metrics');
const keyMetrics = metricAudits.filter(a => a.weight >= 3);
Expand Down
Loading

0 comments on commit 2706df0

Please sign in to comment.