lib/middleware/nodes/getChildren.js
function setNodes(data){
        payload = data;

        if(kontx.args.deep === true){
            async.eachSeries(data, loadChild, sendNext);
        }
        else {
            sendNext();
        }
    }
function setNodes(data){
        payload = data;

        if(kontx.args.deep === true){
            async.eachSeries(data, loadChild, sendNext);
        }
        else {
            sendNext();
        }
    }
function setNodes ( data ) { payload = data ; if ( kontx . args . deep === true ) { async . eachSeries ( data , loadChild , sendNext ) ; } else { sendNext ( ) ; } }
Initial callback that sets the payload and kicks off the recursive method if "deep" is set to true
Initial callback that sets the payload and kicks off the recursive method if deep is set to true