diff --git a/modules/angular2/src/core/decorators/decorators.es6 b/modules/angular2/src/core/decorators/decorators.es6 index 175e68f2d8..ad341b0346 100644 --- a/modules/angular2/src/core/decorators/decorators.es6 +++ b/modules/angular2/src/core/decorators/decorators.es6 @@ -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) { diff --git a/modules/benchmarks/src/tree/tree_benchmark.js b/modules/benchmarks/src/tree/tree_benchmark.js index c3a2f320a5..ed40e79f83 100644 --- a/modules/benchmarks/src/tree/tree_benchmark.js +++ b/modules/benchmarks/src/tree/tree_benchmark.js @@ -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';