lib/moduleLoader/lib/requireAll.js
function (options, iterationInfo) {
        // Use the identity for the key name
        var identity;
        if (options.mode === 'list') {
            identity = iterationInfo.relativeFullPath;
            //identity = identity.toLowerCase();
            //find and replace all containments of '/', ':' and '\' within the string
            identity = identity.replace(/\/|\\|:/g, '');
        }
        else if (options.mode === 'tree') {
            identity = iterationInfo.fileName;
            //identity = identity.toLowerCase();
        }
        else
            throw new Error('Unknown mode');

        //remove extention
        identity = identity.substr(0, identity.lastIndexOf('.')) || identity;

        return identity;
    }
function (options, iterationInfo) {
        // Use the identity for the key name
        var identity;
        if (options.mode === 'list') {
            identity = iterationInfo.relativeFullPath;
            //identity = identity.toLowerCase();
            //find and replace all containments of '/', ':' and '\' within the string
            identity = identity.replace(/\/|\\|:/g, '');
        }
        else if (options.mode === 'tree') {
            identity = iterationInfo.fileName;
            //identity = identity.toLowerCase();
        }
        else
            throw new Error('Unknown mode');

        //remove extention
        identity = identity.substr(0, identity.lastIndexOf('.')) || identity;

        return identity;
    }
function ( options , iterationInfo ) { // Use the identity for the key name var identity ; if ( options . mode === 'list' ) { identity = iterationInfo . relativeFullPath ; //identity = identity.toLowerCase(); //find and replace all containments of '/', ':' and '\' within the string identity = identity . replace ( / \/|\\|: / g , '' ) ; } else if ( options . mode === 'tree' ) { identity = iterationInfo . fileName ; //identity = identity.toLowerCase(); } else throw new Error ( 'Unknown mode' ) ; //remove extention identity = identity . substr ( 0 , identity . lastIndexOf ( '.' ) ) || identity ; return identity ; }
Generates identity for a module
@param options
@param iterationInfo
@returns {string}
Generates identity for a module