lib/bower.js
function eachDependencies( packageFunc, options ){
        var bwr = common.readJSONFile('bower.json');
        _eachDependencies( bwr.name, bwr, packageFunc, options, [], true, common.readJSONFile('.bower.json') );
    }
function eachDependencies( packageFunc, options ){
        var bwr = common.readJSONFile('bower.json');
        _eachDependencies( bwr.name, bwr, packageFunc, options, [], true, common.readJSONFile('.bower.json') );
    }
eachDependencies( packageFunc, options )
Visit each dependencies and dependencies of dependencies and ... in bower.json
packageFunc: function( packageName, bwr, options, firstlevel, dotBowerJson ) - function to process bower.json
bwr         : json-object (= the contents of the current bower.json)
firstlevel  : boolean - true when bwr is the packages own bower.json
dotBowerJson: json-object (= the contents of the current .bower.json)
options: user-defined. Passed on to packageFunc