Skip to content

Commit

Permalink
fix(fromEvent): Defines toString to fix Closure compilations
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenni committed Mar 8, 2018
1 parent 616710a commit bc55f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/internal/observable/fromEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Observable } from '../Observable';
import { isFunction } from '../util/isFunction';
import { Subscriber } from '../Subscriber';

const toString: Function = Object.prototype.toString;

export type NodeStyleEventEmitter = {
addListener: (eventName: string, handler: Function) => void;
removeListener: (eventName: string, handler: Function) => void;
Expand Down

0 comments on commit bc55f58

Please sign in to comment.