dependency-injection
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -33,3 +33,3 @@ // Generated by CoffeeScript 1.6.3 | ||
Service.prototype.create = function() { | ||
var args, called, method, service, wrapper, _ref; | ||
var args, method, service, wrapper, _ref; | ||
wrapper = function(service, args) { | ||
@@ -50,3 +50,7 @@ var f; | ||
} | ||
called = []; | ||
for (method in service) { | ||
if (method.match(/^inject/) !== null) { | ||
service[method].apply(service, this.di.autowireArguments(service[method], [])); | ||
} | ||
} | ||
_ref = this.setup; | ||
@@ -56,9 +60,3 @@ for (method in _ref) { | ||
service[method].apply(service, this.di.autowireArguments(service[method], args)); | ||
called.push(method); | ||
} | ||
for (method in service) { | ||
if (called.indexOf(method) === -1 && method.match(/^inject/) !== null) { | ||
service[method].apply(service, this.di.autowireArguments(service[method], [])); | ||
} | ||
} | ||
return service; | ||
@@ -65,0 +63,0 @@ }; |
{ | ||
"name": "dependency-injection", | ||
"description": "Dependency injection with configuration and autowire for node js and browser", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "David Kudera", |
@@ -165,2 +165,5 @@ # Dependency injection | ||
* 1.1.0 | ||
+ Support for not-instantiate services | ||
+ Support for not-instantiate services | ||
* 1.1.1 | ||
+ inject* methods are called before custom setup |
Sorry, the diff of this file is not supported yet
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
168
15940
179