lib/factories/service.factory.js
function ServiceFactory(injector) {
    this.cache = {};
    this.injector = injector || {};

    // if we are in debug mode, then add the debug handler
    var pattern = this.injector.debugPattern || '*.*.*.*.*';
    var handler = this.injector.debugHandler || debugHandler;
    if (this.injector.debug) {
        eventBus.on(pattern, handler);
    }
}
function ServiceFactory(injector) {
    this.cache = {};
    this.injector = injector || {};

    // if we are in debug mode, then add the debug handler
    var pattern = this.injector.debugPattern || '*.*.*.*.*';
    var handler = this.injector.debugHandler || debugHandler;
    if (this.injector.debug) {
        eventBus.on(pattern, handler);
    }
}
function ServiceFactory ( injector ) { this . cache = { } ; this . injector = injector || { } ; // if we are in debug mode, then add the debug handler var pattern = this . injector . debugPattern || '*.*.*.*.*' ; var handler = this . injector . debugHandler || debugHandler ; if ( this . injector . debug ) { eventBus . on ( pattern , handler ) ; } }
Simple function to clear the cache
@param injector
@constructor
Simple function to clear the cache