Merge pull request #10380 from electron/MarshallOfSound-patch-1

Mark channel as non-optional in ipcRenderer
This commit is contained in:
Zeke Sikelianos 2017-08-29 13:22:41 -07:00 committed by GitHub
commit 178b39b5a8

View file

@ -40,9 +40,9 @@ only the next time a message is sent to `channel`, after which it is removed.
Removes the specified `listener` from the listener array for the specified Removes the specified `listener` from the listener array for the specified
`channel`. `channel`.
### `ipcRenderer.removeAllListeners([channel])` ### `ipcRenderer.removeAllListeners(channel)`
* `channel` String (optional) * `channel` String
Removes all listeners, or those of the specified `channel`. Removes all listeners, or those of the specified `channel`.