feat(PromisePipe): remove ref onDestroy

This commit is contained in:
gdi2290
2015-05-20 14:00:39 -07:00
parent dee4ecbb3f
commit 4afd2b4138
2 changed files with 25 additions and 1 deletions

View File

@ -44,7 +44,11 @@ export class PromisePipe extends Pipe {
supports(promise): boolean { return PromiseWrapper.isPromise(promise); }
onDestroy(): void {
// NO-OP
if (isPresent(this._sourcePromise)) {
this._latestValue = null;
this._latestReturnedValue = null;
this._sourcePromise = null;
}
}
transform(promise: Promise<any>): any {