fix(decorators): updates missing benchmark and fixes typo.
This commit is contained in:
parent
8faf6364dc
commit
87dcd5eb6f
|
@ -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) {
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
import {bootstrap, Component, View, ViewContainerRef, Compiler, Decorator} from 'angular2/angular2';
|
||||
import {bootstrap, ViewContainerRef, Compiler} from 'angular2/angular2';
|
||||
|
||||
// TODO(radokirov): Once the application is transpiled by TS instead of Traceur,
|
||||
// add those imports back into 'angular2/angular2';
|
||||
import {Component, Decorator} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle';
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
|
|
Loading…
Reference in New Issue