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 a1863c3

Browse filesBrowse files
committed
[VarDumper] HtmlDumper: fix collapsing nodes with depth <= maxDepth
1 parent 98dae3e commit a1863c3
Copy full SHA for a1863c3

File tree

1 file changed

+3
-2
lines changed
Filter options

1 file changed

+3
-2
lines changed

‎src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,9 @@ function xpathString(str) {
383383
x += elt.parentNode.getAttribute('data-depth')/1;
384384
}
385385
elt.setAttribute('data-depth', x);
386-
if (elt.className ? 'sf-dump-expanded' !== elt.className : (x > options.maxDepth)) {
387-
elt.className = 'sf-dump-expanded';
386+
var className = elt.className;
387+
elt.className = 'sf-dump-expanded';
388+
if (className ? 'sf-dump-expanded' !== className : (x > options.maxDepth)) {
388389
toggle(a);
389390
}
390391
} else if (/\bsf-dump-ref\b/.test(elt.className) && (a = elt.getAttribute('href'))) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.