bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-11-15 02:53:05 +03:00
parent 6bd22245e0
commit 5c518593b7
2 changed files with 3 additions and 4 deletions

View File

@ -196,11 +196,11 @@ function(name, func, options={}){
// XXX might be nice to add support to pre/post handlers...
// XXX still not sure about the builtin-local event control flow...
// XXX do we need to be able to force global handler???
var EventHandlerMixin =
module.EventHandlerMixin = {
__event_handlers__: null,
// XXX do we need to be able to force global handler???
on: function(evt, func){
// event...
if(evt in this
@ -237,7 +237,6 @@ module.EventHandlerMixin = {
return h !== func
&& h.__event_original_handler__ !== func })) }
return this },
// XXX add support for stopping handler execution...
trigger: function(evt, ...args){
// local handler...
evt in this
@ -271,7 +270,7 @@ module.EventDocMixin = {
var EventMixin =
module.EventMixin =
object.mixinFlat(
object.mixinFlat({},
EventHandlerMixin,
EventDocMixin)

View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "3.6.1",
"version": "3.6.2",
"description": "Generic JavaScript types and type extensions...",
"main": "main.js",
"scripts": {