( objJSON, callback )
| 12431 | }; |
| 12432 | |
| 12433 | function traverse_json_hierarchy( objJSON, callback ) { |
| 12434 | |
| 12435 | callback( objJSON ); |
| 12436 | |
| 12437 | if ( objJSON.children !== undefined ) { |
| 12438 | |
| 12439 | for ( var objChildID in objJSON.children ) { |
| 12440 | |
| 12441 | traverse_json_hierarchy( objJSON.children[ objChildID ], callback ); |
| 12442 | |
| 12443 | } |
| 12444 | |
| 12445 | } |
| 12446 | |
| 12447 | }; |
| 12448 | |
| 12449 | // first go synchronous elements |
| 12450 |