diff --git a/modules/angular2/src/change_detection/pipes/promise_pipe.ts b/modules/angular2/src/change_detection/pipes/promise_pipe.ts index 76df3aad46..9f62b41b9a 100644 --- a/modules/angular2/src/change_detection/pipes/promise_pipe.ts +++ b/modules/angular2/src/change_detection/pipes/promise_pipe.ts @@ -53,12 +53,11 @@ export class PromisePipe extends Pipe { } transform(promise: Promise): any { - var pipe = this; if (isBlank(this._sourcePromise)) { this._sourcePromise = promise; promise.then((val) => { - if (pipe._sourcePromise === promise) { - pipe._updateLatestValue(val); + if (this._sourcePromise === promise) { + this._updateLatestValue(val); } }); return null;