fix(decorators): updates missing benchmark and fixes typo.

This commit is contained in:
Rado Kirov
2015-04-30 10:22:30 -07:00
parent 8faf6364dc
commit 87dcd5eb6f
2 changed files with 7 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import {AttributeAnnotation, QueryAnnotation} from '../annotations/di';
function makeDecorator(annotationCls) {
return function(...args) {
if (!(window.Reflect && !window.Reflect.getMetadata)) throw 'reflect-metadata shim is required';
if (!(window.Reflect && window.Reflect.getMetadata)) throw 'reflect-metadata shim is required';
var annotationInstance = new annotationCls(...args);
var Reflect = window.Reflect;
return function(cls) {