From ef27919f7f641540b737014f8503a7d33e2a471a Mon Sep 17 00:00:00 2001 From: gdi2290 Date: Fri, 29 May 2015 14:28:04 -0700 Subject: [PATCH] feat(core/compiler): AppViewPool use OpaqueToken BREAKING CHANGE: No longer a `const` string. Now a const OpaqueToken --- modules/angular2/src/core/compiler/view_pool.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/angular2/src/core/compiler/view_pool.ts b/modules/angular2/src/core/compiler/view_pool.ts index 12f277ca55..035617b008 100644 --- a/modules/angular2/src/core/compiler/view_pool.ts +++ b/modules/angular2/src/core/compiler/view_pool.ts @@ -1,13 +1,11 @@ -import {Inject, Injectable} from 'angular2/di'; +import {Inject, Injectable, OpaqueToken} from 'angular2/di'; import {ListWrapper, MapWrapper, Map, List} from 'angular2/src/facade/collection'; -import {isPresent, isBlank} from 'angular2/src/facade/lang'; +import {isPresent, isBlank, CONST_EXPR} from 'angular2/src/facade/lang'; import * as viewModule from './view'; - -// TODO(tbosch): Make this an OpaqueToken as soon as our transpiler supports this! -export const APP_VIEW_POOL_CAPACITY = 'AppViewPool.viewPoolCapacity'; +export const APP_VIEW_POOL_CAPACITY = CONST_EXPR(new OpaqueToken('AppViewPool.viewPoolCapacity')); @Injectable() export class AppViewPool {