Comparing version 1.6.0 to 1.6.1
;(function(undefined) { | ||
'use strict'; | ||
/** | ||
* BottleJS v1.6.0 - 2017-02-22 | ||
* BottleJS v1.6.1 - 2017-05-17 | ||
* A powerful dependency injection micro container | ||
@@ -476,8 +476,9 @@ * | ||
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(); | ||
}); | ||
@@ -484,0 +485,0 @@ }; |
{ | ||
"name": "bottlejs", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "A powerful dependency injection micro container", | ||
@@ -5,0 +5,0 @@ "main": "dist/bottle.js", |
@@ -46,3 +46,3 @@ | ||
``` | ||
Replace `VERSION` in the above URL with a valid BottleJS version, e.g. `https://cdnjs.cloudflare.com/ajax/libs/bottlejs/1.5.0/bottle.min.js` | ||
Replace `VERSION` in the above URL with a valid BottleJS version, e.g. `https://cdnjs.cloudflare.com/ajax/libs/bottlejs/1.6.1/bottle.min.js` | ||
@@ -133,3 +133,3 @@ ## Simple Example | ||
if (waterNotSupported) { | ||
Beer.pollyfillWater(); | ||
Beer.polyfillWater(); | ||
} | ||
@@ -136,0 +136,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43748
681