cleanup(change_detection): make Locals private

Closes #4321
This commit is contained in:
vsavkin
2015-09-24 10:04:29 -07:00
committed by Victor Savkin
parent 7c2c1a8e03
commit 225eab8f25
4 changed files with 6 additions and 9 deletions

View File

@ -10,8 +10,6 @@ export {
ExpressionChangedAfterItHasBeenCheckedException,
ChangeDetectionError,
ChangeDetector,
Locals,
ChangeDetectorRef,
WrappedValue,

View File

@ -2,6 +2,9 @@ import {isPresent} from 'angular2/src/core/facade/lang';
import {BaseException} from 'angular2/src/core/facade/exceptions';
import {ListWrapper, MapWrapper} from 'angular2/src/core/facade/collection';
/**
* @private
*/
export class Locals {
constructor(public parent: Locals, public current: Map<any, any>) {}

View File

@ -39,6 +39,9 @@ export class LifeCycle {
_enforceNoNewChanges: boolean;
_runningTick: boolean = false;
/**
* @private
*/
constructor(changeDetector: ChangeDetector = null, enforceNoNewChanges: boolean = false) {
this._changeDetectors = [];
if (isPresent(changeDetector)) {