mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
27 lines
751 B
Markdown
27 lines
751 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [EventEmitter](./puppeteer.eventemitter.md) > [removeAllListeners](./puppeteer.eventemitter.removealllisteners.md)
|
||
|
|
||
|
## EventEmitter.removeAllListeners() method
|
||
|
|
||
|
Removes all listeners. If given an event argument, it will remove only listeners for that event.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
removeAllListeners(event?: EventType): EventEmitter;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| event | EventType | the event to remove listeners for. |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
[EventEmitter](./puppeteer.eventemitter.md)
|
||
|
|
||
|
`this` to enable you to chain calls.
|
||
|
|