lib/ttb-cache.js
function loadModule(modulePath) {
    // Setup environment
    if (loadedModule === undefined || loadedModulePath != modulePath) {
        loadedModule = require(modulePath);
        loadedModulePath = modulePath;
        
        return Q(loadedModule);        
    } else {
        return Q(loadedModule);
    }
}
function loadModule(modulePath) {
    // Setup environment
    if (loadedModule === undefined || loadedModulePath != modulePath) {
        loadedModule = require(modulePath);
        loadedModulePath = modulePath;
        
        return Q(loadedModule);        
    } else {
        return Q(loadedModule);
    }
}
function loadModule ( modulePath ) { // Setup environment if ( loadedModule === undefined || loadedModulePath != modulePath ) { loadedModule = require ( modulePath ) ; loadedModulePath = modulePath ; return Q ( loadedModule ) ; } else { return Q ( loadedModule ) ; } }
Utility method that loads a previously cached module and returns a promise that resolves to that object
Utility method that loads a previously cached module and returns a promise that resolves to that object