code: function getResources(tree) {
    var resources = getTreeResources(tree);
    return {
      css: utilApi.joinArray(resources.childrenCss, resources.subChildrenCss),
      js: utilApi.joinArray(resources.childrenJs, resources.subChildrenJs)
    };
  }
docs: Retrieves CSS and JS files from tree of scripts in a flattened order.
  
  @method getResources
  @param {Object} tree The tree of resources
  @return {Object} An object with:
  - **css** The list of css files in the right order
  - **js** The list of js files in the right order
  the list of JS files
  @private