( objJSON, callback )
| 12562 | }; |
| 12563 | |
| 12564 | function traverse_json_hierarchy( objJSON, callback ) { |
| 12565 | |
| 12566 | callback( objJSON ); |
| 12567 | |
| 12568 | if ( objJSON.children !== undefined ) { |
| 12569 | |
| 12570 | for ( var objChildID in objJSON.children ) { |
| 12571 | |
| 12572 | traverse_json_hierarchy( objJSON.children[ objChildID ], callback ); |
| 12573 | |
| 12574 | } |
| 12575 | |
| 12576 | } |
| 12577 | |
| 12578 | }; |
| 12579 | |
| 12580 | // first go synchronous elements |
| 12581 |