minor bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-08-04 16:31:05 +03:00
parent abad8d18a3
commit 0d22e84856
2 changed files with 5 additions and 1 deletions

View File

@ -120,6 +120,8 @@ object.Constructor('Eventful', {
Object.defineProperty(context, '__event_handlers__', {
value: {[this.name]: (handlers = [])},
enumerable: false,
configurable: true,
writable: true,
})
&& handlers
: (context.__event_handlers__[this.name] =
@ -293,6 +295,8 @@ module.EventHandlerMixin = object.Mixin('EventHandlerMixin', {
&& Object.defineProperty(this, '__event_handlers__', {
value: {},
enumerable: false,
configurable: true,
writable: true,
})
;(this.__event_handlers__[evt] =
this.__event_handlers__[evt] || [])

View File

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