File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " typescript-ioc" ,
3
- "version" : " 0.2.5 " ,
3
+ "version" : " 0.2.6 " ,
4
4
"description" : " A Lightweight annotation-based dependency injection container for typescript." ,
5
5
"author" :
" Thiago da Rosa de Bustamante <[email protected] >" ,
6
6
"dependencies" : {
Original file line number Diff line number Diff line change @@ -148,15 +148,15 @@ export function AutoWired(target: Function) {
148
148
newArgs . push ( IoCContainer . get ( paramTypes [ index ] ) ) ;
149
149
}
150
150
}
151
- target . apply ( this , newArgs ) ;
152
151
IoCContainer . applyInjections ( this , target ) ;
152
+ target . apply ( this , newArgs ) ;
153
153
} , target ) ;
154
154
}
155
155
else {
156
156
newConstructor = InjectorHanlder . decorateConstructor ( function ( ...args : any [ ] ) {
157
157
IoCContainer . assertInstantiable ( target ) ;
158
- target . apply ( this , args ) ;
159
158
IoCContainer . applyInjections ( this , target ) ;
159
+ target . apply ( this , args ) ;
160
160
} , target ) ;
161
161
}
162
162
let config : ConfigImpl = < ConfigImpl > IoCContainer . bind ( target )
You can’t perform that action at this time.
0 commit comments