8000 minor #19200 [VarDumper] Allow full collapsing of HTML dumps (nicolas… · symfony/symfony@160185c · GitHub
[go: up one dir, main page]

Skip to content

Commit 160185c

Browse files
minor #19200 [VarDumper] Allow full collapsing of HTML dumps (nicolas-grekas)
This PR was merged into the 3.2-dev branch. Discussion ---------- [VarDumper] Allow full collapsing of HTML dumps | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16741 | License | MIT | Doc PR | - Because I missed the feature request in #16741 to allow full collapsing. Commits ------- 633989b [VarDumper] Allow full collapsing of HTML dumps
2 parents 76791fe + 633989b commit 160185c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ function isCtrlKey(e) {
294294
x = 1;
295295
if ('sf-dump' != elt.parentNode.className) {
296296
x += elt.parentNode.getAttribute('data-depth')/1;
297-
if (x > options.maxDepth) {
298-
toggle(a);
299-
}
300297
}
301298
elt.setAttribute('data-depth', x);
299+
if (x > options.maxDepth) {
300+
toggle(a);
301+
}
302302
} else if ('sf-dump-ref' == elt.className && (a = elt.getAttribute('href'))) {
303303
a = a.substr(1);
304304
elt.className += ' '+a;

0 commit comments

Comments
 (0)
0