MCPcopy Create free account
hub / github.com/stemkoski/stemkoski.github.com / traverse_json_hierarchy

Function traverse_json_hierarchy

7DFPS/js/Three.js:12433–12447  ·  view source on GitHub ↗
( objJSON, callback )

Source from the content-addressed store, hash-verified

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

Callers 1

Three.jsFile · 0.70

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected