Skip to content

Commit

Permalink
refactor: rename emitReserved to _emitReserved to improve mangling
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Nov 22, 2022
1 parent ab6a6d4 commit 0852bda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Emitter<
* @param ev Reserved event name
* @param args Arguments to emit along with the event
*/
protected emitReserved<Ev extends EventNames<ReservedEvents>>(
protected _emitReserved<Ev extends EventNames<ReservedEvents>>(
ev: Ev,
...args: EventParams<ReservedEvents, Ev>
): this;
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Emitter.prototype.emit = function(event){
};

// alias used for reserved events (protected method)
Emitter.prototype.emitReserved = Emitter.prototype.emit;
Emitter.prototype._emitReserved = Emitter.prototype.emit;

/**
* Return array of callbacks for `event`.
Expand Down
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Emitter.prototype.emit = function(event){
};

// alias used for reserved events (protected method)
Emitter.prototype.emitReserved = Emitter.prototype.emit;
Emitter.prototype._emitReserved = Emitter.prototype.emit;

/**
* Return array of callbacks for `event`.
Expand Down

0 comments on commit 0852bda

Please sign in to comment.