dist/InjectorJS.js
function(name, factory, object) {

                        var that = this;
                        var objects = {};
                        var defaultFactory = this.getDefaultFactory().getName();

                        if (_.isObject(name)) {
                            objects = name;
                        } else {
                            if (_.isUndefined(object)) {
                                object = factory;
                                factory = undefined;
                            }

                            if (_.isUndefined(factory)) {
                                factory = defaultFactory;
                            }

                            objects[factory] = {};
                            objects[factory][name] = object;
                        }

                        _.each(objects, function(factoryObjects, factory) {
                            if (!that.hasFactory(factory)) {
                                if (!(defaultFactory in objects)) {
                                    objects[defaultFactory] = {};
                                }

                                objects[defaultFactory][factory] = factoryObjects;
                                delete objects[factory];
                            }
                        });

                        return objects;
                    }
function(name, factory, object) {

                        var that = this;
                        var objects = {};
                        var defaultFactory = this.getDefaultFactory().getName();

                        if (_.isObject(name)) {
                            objects = name;
                        } else {
                            if (_.isUndefined(object)) {
                                object = factory;
                                factory = undefined;
                            }

                            if (_.isUndefined(factory)) {
                                factory = defaultFactory;
                            }

                            objects[factory] = {};
                            objects[factory][name] = object;
                        }

                        _.each(objects, function(factoryObjects, factory) {
                            if (!that.hasFactory(factory)) {
                                if (!(defaultFactory in objects)) {
                                    objects[defaultFactory] = {};
                                }

                                objects[defaultFactory][factory] = factoryObjects;
                                delete objects[factory];
                            }
                        });

                        return objects;
                    }
function ( name , factory , object ) { var that = this ; var objects = { } ; var defaultFactory = this . getDefaultFactory ( ) . getName ( ) ; if ( _ . isObject ( name ) ) { objects = name ; } else { if ( _ . isUndefined ( object ) ) { object = factory ; factory = undefined ; } if ( _ . isUndefined ( factory ) ) { factory = defaultFactory ; } objects [ factory ] = { } ; objects [ factory ] [ name ] = object ; } _ . each ( objects , function ( factoryObjects , factory ) { if ( ! that . hasFactory ( factory ) ) { if ( ! ( defaultFactory in objects ) ) { objects [ defaultFactory ] = { } ; } objects [ defaultFactory ] [ factory ] = factoryObjects ; delete objects [ factory ] ; } } ) ; return objects ; }
Resolves specified objects

@see set() method

@param {string|object} name      Object name or hash of the objects
@param {string}        factory   Factory name
@param {*}             object    Object or its factory method
@returns {object} Resolved objects

@this {Injector}
@private
Resolves specified objects