refactor: correct api modifier flags

This commit is contained in:
Igor Minar 2016-05-27 12:20:45 -07:00
parent a5a422f8e7
commit 70d944a59c
3 changed files with 5 additions and 4 deletions

View File

@ -74,9 +74,10 @@ export class AsyncPipe implements OnDestroy {
_subscription: Object = null; _subscription: Object = null;
/** @internal */ /** @internal */
_obj: Observable<any>| Promise<any>| EventEmitter<any> = null; _obj: Observable<any>| Promise<any>| EventEmitter<any> = null;
private _strategy: SubscriptionStrategy = null;
/** @internal */ /** @internal */
public _ref: ChangeDetectorRef; _ref: ChangeDetectorRef;
private _strategy: SubscriptionStrategy = null;
constructor(_ref: ChangeDetectorRef) { this._ref = _ref; } constructor(_ref: ChangeDetectorRef) { this._ref = _ref; }
ngOnDestroy(): void { ngOnDestroy(): void {

View File

@ -118,7 +118,7 @@ export class DatePipe implements PipeTransform {
return DateFormatter.format(value, defaultLocale, pattern); return DateFormatter.format(value, defaultLocale, pattern);
} }
supports(obj: any): boolean { private supports(obj: any): boolean {
if (isDate(obj) || isNumber(obj)) { if (isDate(obj) || isNumber(obj)) {
return true; return true;
} }

View File

@ -1,4 +1,4 @@
import {Injectable, PipeTransform, WrappedValue, Pipe} from '@angular/core'; import {PipeTransform, Pipe} from '@angular/core';
import { import {
isNumber, isNumber,