From c571b2693ec87f44c8ad77f16ab3faf1ab014baa Mon Sep 17 00:00:00 2001 From: gdi2290 Date: Fri, 29 May 2015 14:27:46 -0700 Subject: [PATCH] feat(OpaqueToken): now a const constructor BREAKING CHANGE: now a `const` constructor --- modules/angular2/src/di/opaque_token.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/angular2/src/di/opaque_token.ts b/modules/angular2/src/di/opaque_token.ts index 3894340db0..2e0eb15759 100644 --- a/modules/angular2/src/di/opaque_token.ts +++ b/modules/angular2/src/di/opaque_token.ts @@ -1,12 +1,16 @@ +import {CONST} from 'angular2/src/facade/lang'; + /** * * * @exportedAs angular2/di */ + +@CONST() export class OpaqueToken { _desc: string; - constructor(desc: string) { this._desc = `Token(${desc})`; } + constructor(desc: string) { this._desc = 'Token(' + desc + ')'; } toString(): string { return this._desc; } -} \ No newline at end of file +}