From 225eab8f25765fd2e9356e956846aacaf9dd2bbb Mon Sep 17 00:00:00 2001 From: vsavkin Date: Thu, 24 Sep 2015 10:04:29 -0700 Subject: [PATCH] cleanup(change_detection): make Locals private Closes #4321 --- modules/angular2/src/core/change_detection.ts | 2 -- .../angular2/src/core/change_detection/parser/locals.ts | 3 +++ modules/angular2/src/core/life_cycle/life_cycle.ts | 3 +++ modules/angular2/test/public_api_spec.ts | 7 ------- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/modules/angular2/src/core/change_detection.ts b/modules/angular2/src/core/change_detection.ts index b131dcfb66..3d41713cd7 100644 --- a/modules/angular2/src/core/change_detection.ts +++ b/modules/angular2/src/core/change_detection.ts @@ -10,8 +10,6 @@ export { ExpressionChangedAfterItHasBeenCheckedException, ChangeDetectionError, - ChangeDetector, - Locals, ChangeDetectorRef, WrappedValue, diff --git a/modules/angular2/src/core/change_detection/parser/locals.ts b/modules/angular2/src/core/change_detection/parser/locals.ts index b6212c6182..4c15a043e9 100644 --- a/modules/angular2/src/core/change_detection/parser/locals.ts +++ b/modules/angular2/src/core/change_detection/parser/locals.ts @@ -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) {} diff --git a/modules/angular2/src/core/life_cycle/life_cycle.ts b/modules/angular2/src/core/life_cycle/life_cycle.ts index 9c3d4bf291..7b62ceeeb7 100644 --- a/modules/angular2/src/core/life_cycle/life_cycle.ts +++ b/modules/angular2/src/core/life_cycle/life_cycle.ts @@ -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)) { diff --git a/modules/angular2/test/public_api_spec.ts b/modules/angular2/test/public_api_spec.ts index e057c567e6..ba3c07cc6d 100644 --- a/modules/angular2/test/public_api_spec.ts +++ b/modules/angular2/test/public_api_spec.ts @@ -1119,13 +1119,6 @@ var NG_API = [ '{AfterContentInit}', '{AfterViewChecked}', '{AfterViewInit}', - '{ChangeDetector}', - '{ChangeDetector}.mode', - '{ChangeDetector}.mode=', - '{ChangeDetector}.parent', - '{ChangeDetector}.parent=', - '{ChangeDetector}.ref', - '{ChangeDetector}.ref=', '{ControlValueAccessor}', '{DoCheck}', '{Form}',