From bd8a4215dde885f623f097b109ea03db9d117526 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Wed, 16 Mar 2016 11:47:55 -0700 Subject: [PATCH] refactor(core): remove @Injectable as only classes that are instantiated via DI need it --- .../src/core/change_detection/differs/iterable_differs.ts | 1 - .../src/core/change_detection/differs/keyvalue_differs.ts | 1 - modules/angular2/src/platform/worker_render.dart | 1 - 3 files changed, 3 deletions(-) diff --git a/modules/angular2/src/core/change_detection/differs/iterable_differs.ts b/modules/angular2/src/core/change_detection/differs/iterable_differs.ts index 8deaf7acc5..710db20653 100644 --- a/modules/angular2/src/core/change_detection/differs/iterable_differs.ts +++ b/modules/angular2/src/core/change_detection/differs/iterable_differs.ts @@ -31,7 +31,6 @@ export interface IterableDifferFactory { /** * A repository of different iterable diffing strategies used by NgFor, NgClass, and others. */ -@Injectable() @CONST() export class IterableDiffers { constructor(public factories: IterableDifferFactory[]) {} diff --git a/modules/angular2/src/core/change_detection/differs/keyvalue_differs.ts b/modules/angular2/src/core/change_detection/differs/keyvalue_differs.ts index 68105a5727..14c1a3f805 100644 --- a/modules/angular2/src/core/change_detection/differs/keyvalue_differs.ts +++ b/modules/angular2/src/core/change_detection/differs/keyvalue_differs.ts @@ -23,7 +23,6 @@ export interface KeyValueDifferFactory { /** * A repository of different Map diffing strategies used by NgClass, NgStyle, and others. */ -@Injectable() @CONST() export class KeyValueDiffers { constructor(public factories: KeyValueDifferFactory[]) {} diff --git a/modules/angular2/src/platform/worker_render.dart b/modules/angular2/src/platform/worker_render.dart index f0d30c9168..ad461fb6f0 100644 --- a/modules/angular2/src/platform/worker_render.dart +++ b/modules/angular2/src/platform/worker_render.dart @@ -59,7 +59,6 @@ class UIMessageBusSource extends IsolateMessageBusSource { * Wrapper class that exposes the Isolate * and underlying {@link MessageBus} for lower level message passing. */ -@Injectable() class WebWorkerInstance { Isolate worker; MessageBus bus;