File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/angular2/src/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export function makeDecorator(annotationCls) {
1010 throw 'reflect-metadata shim is required when using class decorators' ;
1111 }
1212 var annotationInstance = Object . create ( annotationCls ) ;
13- annotationInstance . call ( annotationInstance , args ) ;
13+ annotationCls . call ( annotationInstance , args ) ;
1414 return function ( cls ) {
1515 var annotations = Reflect . getMetadata ( 'annotations' , cls ) ;
1616 annotations = annotations || [ ] ;
@@ -29,7 +29,7 @@ export function makeParamDecorator(annotationCls) {
2929 throw 'reflect-metadata shim is required when using parameter decorators' ;
3030 }
3131 var annotationInstance = Object . create ( annotationCls ) ;
32- annotationInstance . call ( annotationInstance , args ) ;
32+ annotationCls . call ( annotationInstance , args ) ;
3333 return function ( cls , unusedKey , index ) {
3434 var parameters = Reflect . getMetadata ( 'parameters' , cls ) ;
3535 parameters = parameters || [ ] ;
You can’t perform that action at this time.
0 commit comments