@fastkit/ev
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -6,2 +6,8 @@ 'use strict'; | ||
class EVListener { | ||
context; | ||
type; | ||
tag; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
handler; | ||
once; | ||
constructor({ context, remover, type, tag, handler, once = false, }) { | ||
@@ -59,2 +65,3 @@ this.context = context; | ||
} | ||
_remover; | ||
} | ||
@@ -89,5 +96,2 @@ | ||
class EV { | ||
constructor() { | ||
this.__ev_listeners__ = []; | ||
} | ||
on(typeOrOption, handlerOrOption, option, once) { | ||
@@ -192,2 +196,3 @@ let _type; | ||
} | ||
__ev_listeners__ = []; | ||
__ev_listener_remover__(listener) { | ||
@@ -194,0 +199,0 @@ this.__ev_listeners__.splice(this.__ev_listeners__.indexOf(listener), 1); |
@@ -6,2 +6,8 @@ 'use strict'; | ||
class EVListener { | ||
context; | ||
type; | ||
tag; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
handler; | ||
once; | ||
constructor({ context, remover, type, tag, handler, once = false, }) { | ||
@@ -59,2 +65,3 @@ this.context = context; | ||
} | ||
_remover; | ||
} | ||
@@ -89,5 +96,2 @@ | ||
class EV { | ||
constructor() { | ||
this.__ev_listeners__ = []; | ||
} | ||
on(typeOrOption, handlerOrOption, option, once) { | ||
@@ -192,2 +196,3 @@ let _type; | ||
} | ||
__ev_listeners__ = []; | ||
__ev_listener_remover__(listener) { | ||
@@ -194,0 +199,0 @@ this.__ev_listeners__.splice(this.__ev_listeners__.indexOf(listener), 1); |
@@ -1,2 +0,1 @@ | ||
/** | ||
@@ -3,0 +2,0 @@ * The context class for event operations. |
class EVListener { | ||
context; | ||
type; | ||
tag; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
handler; | ||
once; | ||
constructor({ context, remover, type, tag, handler, once = false, }) { | ||
@@ -54,2 +60,3 @@ this.context = context; | ||
} | ||
_remover; | ||
} | ||
@@ -84,5 +91,2 @@ | ||
class EV { | ||
constructor() { | ||
this.__ev_listeners__ = []; | ||
} | ||
on(typeOrOption, handlerOrOption, option, once) { | ||
@@ -187,2 +191,3 @@ let _type; | ||
} | ||
__ev_listeners__ = []; | ||
__ev_listener_remover__(listener) { | ||
@@ -189,0 +194,0 @@ this.__ev_listeners__.splice(this.__ev_listeners__.indexOf(listener), 1); |
{ | ||
"name": "@fastkit/ev", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "@fastkit/ev", | ||
@@ -5,0 +5,0 @@ "buildOptions": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26261
826