blueocean-core-js/src/js/capability/CapabilityStore.js
/**
     * Store the values in the cache and return it.
     *
     * @param map
     * @returns {object} keyed by className, with an array of string capability names.
     * @private
     */
Store the values in the cache and return it.
@param map
@returns {object} keyed by className, with an array of string capability names.
@private
Store the values in the cache and return it . @param map @returns { object } keyed by className with an array of string capability names . @private
_storeCapabilities(map) {
        const storedCapabilities = {};
        Object.keys(map).forEach(className => {
            const capabilities = map[className];
            this._localStore[className] = storedCapabilities[className] = capabilities.classes.slice();
            classesInfoNS.set(className, this._localStore[className]);
        });
        return storedCapabilities;
    }
_storeCapabilities ( map ) { const storedCapabilities = { } ; Object . keys ( map ) . forEach ( className => { const capabilities = map [ className ] ; this . _localStore [ className ] = storedCapabilities [ className ] = capabilities . classes . slice ( ) ; classesInfoNS . set ( className , this . _localStore [ className ] ) ; } ) ; return storedCapabilities ; }
Store the values in the cache and return it.
Store the values in the cache and return it .
// Also store in the browser so we don't have to look // up this info again (unless the storage namespace is // cleared due to jenkins or plugin changes).