[
https://issues.apache.org/jira/browse/CB-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254449#comment-13254449
]
tribalvibes commented on CB-516:
--------------------------------
it's being passed in as a parameter, but the declaration is wrong. I've patched
it locally as:
```
function makeStructured(obj, maxDepth, depth) {
var str = "";
for (var i in obj) {
try {
if (typeof(obj[i]) == 'object' && depth && maxDepth && depth <
maxDepth) {
str += i + ":\n" +
indent(makeStructured(obj[i],maxDepth,(depth||0)+1)) + "\n";
```
> ios/console#makeStructured throws EXCEPTION: Can't find variable: maxDepth
> --------------------------------------------------------------------------
>
> Key: CB-516
> URL: https://issues.apache.org/jira/browse/CB-516
> Project: Apache Callback
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 1.6.0
> Reporter: tribalvibes
> Assignee: Shazron Abdullah
> Fix For: 1.6.1
>
>
> Debug console logging of objects throws EXCEPTION: Can't find variable:
> maxDepth because makeStructured fails to recurse the maxDepth parameter
> correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira