Skip to content

Commit 524d015

Browse files
committed
removeListener / off
except 'event' all other parameters should be optional.
1 parent 5d696d4 commit 524d015

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/events/EventEmitter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ var EventEmitter = new Class({
141141
* @since 3.0.0
142142
*
143143
* @param {(string|symbol)} event - The event name.
144-
* @param {function} fn - Only remove the listeners that match this function.
145-
* @param {*} context - Only remove the listeners that have this context.
146-
* @param {boolean} once - Only remove one-time listeners.
144+
* @param {function} [fn] - Only remove the listeners that match this function.
145+
* @param {*} [context] - Only remove the listeners that have this context.
146+
* @param {boolean} [once] - Only remove one-time listeners.
147147
*
148148
* @return {Phaser.Events.EventEmitter} `this`.
149149
*/
@@ -155,9 +155,9 @@ var EventEmitter = new Class({
155155
* @since 3.0.0
156156
*
157157
* @param {(string|symbol)} event - The event name.
158-
* @param {function} fn - Only remove the listeners that match this function.
159-
* @param {*} context - Only remove the listeners that have this context.
160-
* @param {boolean} once - Only remove one-time listeners.
158+
* @param {function} [fn] - Only remove the listeners that match this function.
159+
* @param {*} [context] - Only remove the listeners that have this context.
160+
* @param {boolean} [once] - Only remove one-time listeners.
161161
*
162162
* @return {Phaser.Events.EventEmitter} `this`.
163163
*/

0 commit comments

Comments
 (0)