Skip to content

Commit

Permalink
Bumping dist files for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
young-steveo committed May 17, 2017
1 parent 6925c04 commit 3c0087b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions dist/bottle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;(function(undefined) {
'use strict';
/**
* BottleJS v1.6.0 - 2017-02-22
* BottleJS v1.6.1 - 2017-05-17
* A powerful dependency injection micro container
*
* Copyright (c) 2017 Stephen Young
Expand Down Expand Up @@ -473,12 +473,13 @@
var deps = arguments.length > 2 ? slice.call(arguments, 2) : null;
var bottle = this;
return factory.call(this, name, function GenericFactory() {
var ServiceCopy = Service;
if (deps) {
deps = deps.map(getNestedService, bottle.container);
deps.unshift(Service);
Service = Service.bind.apply(Service, deps);
var args = deps.map(getNestedService, bottle.container);
args.unshift(Service);
ServiceCopy = Service.bind.apply(Service, args);
}
return new Service();
return new ServiceCopy();
});
};

Expand Down
4 changes: 2 additions & 2 deletions dist/bottle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c0087b

Please sign in to comment.