src/aria/storage/UserData.js
function getMappedKey (key, create) {
        allKeyMap = getAllKeys();

        if (create && !(key in allKeyMap)) {
            var newKey = ("uD" + _UNIQUE_ID++);
            setMappedKey(newKey, key);

            return newKey;
        } else {
            return allKeyMap[key];
        }
    }
function getMappedKey (key, create) {
        allKeyMap = getAllKeys();

        if (create && !(key in allKeyMap)) {
            var newKey = ("uD" + _UNIQUE_ID++);
            setMappedKey(newKey, key);

            return newKey;
        } else {
            return allKeyMap[key];
        }
    }
function getMappedKey ( key , create ) { allKeyMap = getAllKeys ( ) ; if ( create && ! ( key in allKeyMap ) ) { var newKey = ( "uD" + _UNIQUE_ID ++ ) ; setMappedKey ( newKey , key ) ; return newKey ; } else { return allKeyMap [ key ] ; } }
Return the generated key corresponding to the user defined key, and optionally creates one if missing.
@param {String} key User defined key
@param {Boolean} create create it if missing, default false
@return {String} framework generated key
Return the generated key corresponding to the user defined key and optionally creates one if missing .