diff --git a/src/Subscriber.ts b/src/Subscriber.ts index 12d9b55834..18e0a2e05b 100644 --- a/src/Subscriber.ts +++ b/src/Subscriber.ts @@ -58,7 +58,7 @@ export class Subscriber extends Subscription implements Observer { } } - add(sub: Subscription | Function | void): void { + add(sub: Subscription | Function | void): void { // route add to the shared Subscription if it exists const _subscription = this._subscription; if (_subscription) { @@ -68,7 +68,7 @@ export class Subscriber extends Subscription implements Observer { } } - remove(sub: Subscription): void { + remove(sub: Subscription): void { // route remove to the shared Subscription if it exists if (this._subscription) { this._subscription.remove(sub); diff --git a/src/Subscription.ts b/src/Subscription.ts index 1846b32015..6e4c612990 100644 --- a/src/Subscription.ts +++ b/src/Subscription.ts @@ -47,7 +47,7 @@ export class Subscription { } } - add(subscription: Subscription|Function|void): void { + add(subscription: Subscription|Function|void): void { // return early if: // 1. the subscription is null // 2. we're attempting to add our this @@ -58,7 +58,7 @@ export class Subscription { return; } - let sub = (> subscription); + let sub = (> subscription); switch (typeof subscription) { case 'function': @@ -78,7 +78,7 @@ export class Subscription { } } - remove(subscription: Subscription): void { + remove(subscription: Subscription): void { // return early if: // 1. the subscription is null