dist/hawtio-utilities.js
function forEachLeafFolder(folders, fn) {
        angular.forEach(folders, function (folder) {
            var children = folder["children"];
            if (angular.isArray(children) && children.length > 0) {
                forEachLeafFolder(children, fn);
            }
            else {
                fn(folder);
            }
        });
    }
function forEachLeafFolder(folders, fn) {
        angular.forEach(folders, function (folder) {
            var children = folder["children"];
            if (angular.isArray(children) && children.length > 0) {
                forEachLeafFolder(children, fn);
            }
            else {
                fn(folder);
            }
        });
    }
function forEachLeafFolder ( folders , fn ) { angular . forEach ( folders , function ( folder ) { var children = folder [ "children" ] ; if ( angular . isArray ( children ) && children . length > 0 ) { forEachLeafFolder ( children , fn ) ; } else { fn ( folder ) ; } } ) ; }
Invokes the given function on each leaf node in the array of folders
@method forEachLeafFolder
@for Core
@static
@param {Array[Folder]} folders
@param {Function} fn
Invokes the given function on each leaf node in the array of folders