Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1a9c633

Browse filesBrowse files
committed
bug symfony#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 | symfony#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
Copy full SHA for 1a9c633

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
  • src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.js
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.