( objJSON, callback )
| 13342 | }; |
| 13343 | |
| 13344 | function traverse_json_hierarchy( objJSON, callback ) { |
| 13345 | |
| 13346 | callback( objJSON ); |
| 13347 | |
| 13348 | if ( objJSON.children !== undefined ) { |
| 13349 | |
| 13350 | for ( var objChildID in objJSON.children ) { |
| 13351 | |
| 13352 | traverse_json_hierarchy( objJSON.children[ objChildID ], callback ); |
| 13353 | |
| 13354 | } |
| 13355 | |
| 13356 | } |
| 13357 | |
| 13358 | }; |
| 13359 | |
| 13360 | // first go synchronous elements |
| 13361 |