Comparing version 0.5.0 to 0.6.0
;(function(undefined) { | ||
'use strict'; | ||
/** | ||
* BottleJS v0.5.0 - 2014-10-12 | ||
* BottleJS v0.6.0 - 2014-10-19 | ||
* A powerful, extensible dependency injection micro container | ||
@@ -396,3 +396,3 @@ * | ||
this.id = id++; | ||
this.container = {}; | ||
this.container = { $register : register.bind(this) }; | ||
}; | ||
@@ -399,0 +399,0 @@ |
{ | ||
"name": "bottlejs", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "A powerful, extensible dependency injection micro container", | ||
@@ -5,0 +5,0 @@ "main": "dist/bottle.js", |
@@ -252,4 +252,5 @@ | ||
#### register(Obj) | ||
#### container.$register(Obj) | ||
Used to register a service, factory, provider, or value based on properties of the Obj. | ||
Used to register a service, factory, provider, or value based on properties of the Obj. `bottle.container.$register` is an alias of `bottle.register`; this allows factories and providers to register multiple services on the container without needing access to the bottle instance itself. | ||
@@ -256,0 +257,0 @@ Param | Type | Details |
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
27268
286