feat(core/compiler): AppViewPool use OpaqueToken

BREAKING CHANGE:

No longer a `const` string. Now a const OpaqueToken
This commit is contained in:
gdi2290 2015-05-29 14:28:04 -07:00 committed by Tobias Bosch
parent c571b2693e
commit ef27919f7f
1 changed files with 3 additions and 5 deletions

View File

@ -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 {