Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a9c633

Browse files
committed
bug #33575 [WebProfilerBundle] Fix time panel legend buttons (fancyweb)
This PR was merged into the 4.3 branch. Discussion ---------- [WebProfilerBundle] Fix time panel legend buttons | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #33536 | License | MIT | Doc PR | - It fixes the buttons multiple generations and the toggle behavior as well. Commits ------- 7f4c8d3 [WebProfilerBundle] Fix time panel legend buttons
2 parents f531ef5 + 7f4c8d3 commit 1a9c633

File tree

1 file changed

+5
-1
lines changed
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector

1 file changed

+5
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ class Legend {
220220
this.toggle = this.toggle.bind(this);
221221
this.createCategory = this.createCategory.bind(this);
222222

223-
this.categories = Array.from(Object.keys(classnames)).map(this.createCategory);
223+
this.categories = [];
224+
225+
Object.keys(classnames).forEach(this.createCategory);
224226
}
225227

226228
add(category) {
@@ -238,6 +240,8 @@ class Legend {
238240

239241
this.element.appendChild(element);
240242

243+
this.categories.push(element);
244+
241245
return element;
242246
}
243247

0 commit comments

Comments
 (0)