From 633989b5830c2cb0b7c8f3ac192e4e5b015010f7 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 28 Jun 2016 08:09:15 +0200 Subject: [PATCH] [VarDumper] Allow full collapsing of HTML dumps --- src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php b/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php index 78185fdeb8080..fdf215947a1ad 100644 --- a/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php +++ b/src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php @@ -294,11 +294,11 @@ function isCtrlKey(e) { x = 1; if ('sf-dump' != elt.parentNode.className) { x += elt.parentNode.getAttribute('data-depth')/1; - if (x > options.maxDepth) { - toggle(a); - } } elt.setAttribute('data-depth', x); + if (x > options.maxDepth) { + toggle(a); + } } else if ('sf-dump-ref' == elt.className && (a = elt.getAttribute('href'))) { a = a.substr(1); elt.className += ' '+a;