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, ExpressionChangedAfterItHasBeenCheckedException,
ChangeDetectionError, ChangeDetectionError,
ChangeDetector,
Locals,
ChangeDetectorRef, ChangeDetectorRef,
WrappedValue, WrappedValue,

View File

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

View File

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

View File

@ -1119,13 +1119,6 @@ var NG_API = [
'{AfterContentInit}', '{AfterContentInit}',
'{AfterViewChecked}', '{AfterViewChecked}',
'{AfterViewInit}', '{AfterViewInit}',
'{ChangeDetector}',
'{ChangeDetector}.mode',
'{ChangeDetector}.mode=',
'{ChangeDetector}.parent',
'{ChangeDetector}.parent=',
'{ChangeDetector}.ref',
'{ChangeDetector}.ref=',
'{ControlValueAccessor}', '{ControlValueAccessor}',
'{DoCheck}', '{DoCheck}',
'{Form}', '{Form}',