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

Function traverse_json_hierarchy

Three.js/js/Three62.js:12564–12578  ·  view source on GitHub ↗
( objJSON, callback )

Source from the content-addressed store, hash-verified

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

Callers 1

Three62.jsFile · 0.70

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected