lib/bundleLocator.js
function (filter) {
        var bundleName,
            bundles = this._bundles,
            bundleNames = [];
        if ('function' !== typeof filter) {
            return Object.keys(this._bundles);
        }
        for (bundleName in bundles) {
            if (bundles.hasOwnProperty(bundleName)) {
                if (filter(bundles[bundleName])) {
                    bundleNames.push(bundleName);
                }
            }
        }
        return bundleNames;
    }
function (filter) {
        var bundleName,
            bundles = this._bundles,
            bundleNames = [];
        if ('function' !== typeof filter) {
            return Object.keys(this._bundles);
        }
        for (bundleName in bundles) {
            if (bundles.hasOwnProperty(bundleName)) {
                if (filter(bundles[bundleName])) {
                    bundleNames.push(bundleName);
                }
            }
        }
        return bundleNames;
    }
Returns a list of all located bundle names.
The names are not ordered.
@method getBundleNames
@param {Function} [filter] function to execute on each bundle.
If no `filter` is supplied, all bundle names will be returned. The
function will receive the following argument:
@param {Object} filter.bundle the current bundle being iterated on
@param {boolean} filter.return Return true to indicate that the
bundle name should be returned in the list. Otherise the bundle
name will be skipped.
@return {Array} list of bundles