8000 [Var-Dumper] added feature to set default nodes collapsed by MGDSoft · Pull Request #18148 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Var-Dumper] added feature to set default nodes collapsed #18148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Var-Dumper] added displayOptions(initDepth, maxDepth, maxStringLength)
  • Loading branch information
MGDSoft committed Apr 2, 2016
commit 58cd6fddf6d396d5b1fa761104036288553b84c4
8 changes: 5 additions & 3 deletions src/Symfony/Component/VarDumper/Dumper/HtmlDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ function toggle(a, depth) {
a = s.querySelectorAll('.'+oldClass);

for (i = 0; i < a.length; ++i) {

if (depth !== 'ALL' && isNaN(depth) == false) {
if (getLevelNodeForParent(s, a[i]) > depth) {
console.log(depth, depth != 'ALL', isNaN(depth) == false);
if (depth != 'ALL' && isNaN(depth) == false) {
console.log(getLevelNodeForParent(s, a[i]), depth, getLevelNodeForParent(s, a[i]));
if (getLevelNodeForParent(s, a[i]) >= depth) {
console.log("IGNORE");
continue;
}
}
Expand Down
0