aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-17 10:42:19 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-17 10:42:19 +0100
commit079f6f0ac37cb6d62501e8c397cc9850936f26e6 (patch)
treecfdac1e222180436b1e8bcf245c3fbb2140224a8 /src/types
parentbf6e2aeb13f9a4bee2be1f8f7a70ca1a73215245 (diff)
downloadsvg.js-079f6f0ac37cb6d62501e8c397cc9850936f26e6.tar.gz
svg.js-079f6f0ac37cb6d62501e8c397cc9850936f26e6.zip
cleanup a few files
Diffstat (limited to 'src/types')
-rw-r--r--src/types/EventTarget.js24
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 () {}
}