Skip to content

Commit

Permalink
perf(DeferSubscriber): stop to indirect calling a factory function.
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed Mar 22, 2016
1 parent 7116d1d commit 09cd8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observable/DeferObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DeferSubscriber<T> extends OuterSubscriber<T, T> {

private tryDefer(): void {
try {
const result = this.factory.call(this);
const result = this.factory();
if (result) {
this.add(subscribeToResult(this, result));
}
Expand Down

0 comments on commit 09cd8d0

Please sign in to comment.