Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar authored Oct 27, 2019
1 parent d0e05eb commit f3bbcb3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/common/EventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ export class EventEmitter<T> implements IEventEmitter<T> {
}
}

public dispose(): void {
if (this._listeners) {
this._listeners.splice(0, this._listeners.length);
public dispose(): void {
if (this._listeners) {
this._listeners.length = 0;
}
this._disposed = true;
}
this._disposed = true;
}

}

0 comments on commit f3bbcb3

Please sign in to comment.