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

Function traverse_json_hierarchy

Three.js/js/Three59dev.js:12006–12020  ·  view source on GitHub ↗
( objJSON, callback )

Source from the content-addressed store, hash-verified

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

Callers 1

Three59dev.jsFile · 0.70

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected