( objJSON, callback )
| 12004 | }; |
| 12005 | |
| 12006 | function traverse_json_hierarchy( objJSON, callback ) { |
| 12007 | |
| 12008 | callback( objJSON ); |
| 12009 | |
| 12010 | if ( objJSON.children !== undefined ) { |
| 12011 | |
| 12012 | for ( var objChildID in objJSON.children ) { |
| 12013 | |
| 12014 | traverse_json_hierarchy( objJSON.children[ objChildID ], callback ); |
| 12015 | |
| 12016 | } |
| 12017 | |
| 12018 | } |
| 12019 | |
| 12020 | }; |
| 12021 | |
| 12022 | // first go synchronous elements |
| 12023 |