( objJSON, callback )
| 12510 | }; |
| 12511 | |
| 12512 | function traverse_json_hierarchy( objJSON, callback ) { |
| 12513 | |
| 12514 | callback( objJSON ); |
| 12515 | |
| 12516 | if ( objJSON.children !== undefined ) { |
| 12517 | |
| 12518 | for ( var objChildID in objJSON.children ) { |
| 12519 | |
| 12520 | traverse_json_hierarchy( objJSON.children[ objChildID ], callback ); |
| 12521 | |
| 12522 | } |
| 12523 | |
| 12524 | } |
| 12525 | |
| 12526 | }; |
| 12527 | |
| 12528 | // first go synchronous elements |
| 12529 |