MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / traverse_json_hierarchy

Function traverse_json_hierarchy

Three.js/js/Three62dev.js:12512–12526  ·  view source on GitHub ↗
( objJSON, callback )

Source from the content-addressed store, hash-verified

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

Callers 1

Three62dev.jsFile · 0.70

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected