dist/InjectorJS.js
function(factoryName, object) {
                        if (_.isUndefined(object)) {
                            object = factoryName;
                            factoryName = undefined;
                        }

                        var that = this;

                        return function() {

                            var factory = !_.isUndefined(factoryName) ? that.getFactory(factoryName) : that.getDefaultFactory();

                            var params = _.isFunction(object) ? object.call(that) : object;

                            return _.isFunction(factory) ? factory(params) : factory.create(params);
                        }
                    }
function(factoryName, object) {
                        if (_.isUndefined(object)) {
                            object = factoryName;
                            factoryName = undefined;
                        }

                        var that = this;

                        return function() {

                            var factory = !_.isUndefined(factoryName) ? that.getFactory(factoryName) : that.getDefaultFactory();

                            var params = _.isFunction(object) ? object.call(that) : object;

                            return _.isFunction(factory) ? factory(params) : factory.create(params);
                        }
                    }
function ( factoryName , object ) { if ( _ . isUndefined ( object ) ) { object = factoryName ; factoryName = undefined ; } var that = this ; return function ( ) { var factory = ! _ . isUndefined ( factoryName ) ? that . getFactory ( factoryName ) : that . getDefaultFactory ( ) ; var params = _ . isFunction ( object ) ? object . call ( that ) : object ; return _ . isFunction ( factory ) ? factory ( params ) : factory . create ( params ) ; } }
Creates object creator

@param {string}    factoryName Factory name
@param {*|factory} object      Object or its factory function
@returns {Function} Object     creator

@this {Injector}
@private
Creates object creator