diff options
Diffstat (limited to 'src/types/EventTarget.js')
-rw-r--r-- | src/types/EventTarget.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/types/EventTarget.js b/src/types/EventTarget.js index 31d01df..5a005fd 100644 --- a/src/types/EventTarget.js +++ b/src/types/EventTarget.js @@ -9,18 +9,6 @@ export default class EventTarget extends Base { addEventListener () {} - // Bind given event to listener - on (event, listener, binding, options) { - on(this, event, listener, binding, options) - return this - } - - // Unbind event from listener - off (event, listener) { - off(this, event, listener) - return this - } - dispatch (event, data) { return dispatch(this, event, data) } @@ -54,5 +42,17 @@ export default class EventTarget extends Base { return this } + // Unbind event from listener + off (event, listener) { + off(this, event, listener) + return this + } + + // Bind given event to listener + on (event, listener, binding, options) { + on(this, event, listener, binding, options) + return this + } + removeEventListener () {} } |