Skip to content

Commit 4977764

Browse files
committed
fix(decorators): fixed decorators
1 parent cb87fa0 commit 4977764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/angular2/src/util/decorators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 || [];

0 commit comments

Comments
 (0)