Skip to content

Commit

Permalink
Merge pull request #2715 from anthonydmays/patch-1
Browse files Browse the repository at this point in the history
fix(Notification): Don't reference `this` from static methods.
  • Loading branch information
kwonoj authored Jul 3, 2017
2 parents 0506ea0 + 9f8e375 commit 3bb6240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class Notification<T> {
if (typeof value !== 'undefined') {
return new Notification('N', value);
}
return this.undefinedValueNotification;
return Notification.undefinedValueNotification;
}

/**
Expand All @@ -126,6 +126,6 @@ export class Notification<T> {
* @return {Notification<any>} The valueless "complete" Notification.
*/
static createComplete(): Notification<any> {
return this.completeNotification;
return Notification.completeNotification;
}
}

0 comments on commit 3bb6240

Please sign in to comment.