From 7f387d8f3d6713df26fa2d4c6068d80a4ccd1431 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 24 Oct 2022 17:10:15 +0300 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- event.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/event.js b/event.js index b85e1c4..53b0946 100644 --- a/event.js +++ b/event.js @@ -253,14 +253,14 @@ object.Constructor('Event', Eventful, { __call__: function(context, ...args){ // NOTE: when the first arg is an event command this will // fall through to calling the action... - typeof(args[0]) == 'function' ? + var res = typeof(args[0]) == 'function' ? // add handler... this.bind(context, args[0]) // call the action... : object.parentCall(Event.prototype.__call__, this, context, ...args) // XXX workaround for above line -- remove when fully tested... //: Eventful.prototype.__call__.call(this, context, ...args) - return context }, + return res }, }) diff --git a/package.json b/package.json index 433011d..e7ec331 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-types", - "version": "6.20.0", + "version": "6.20.1", "description": "Generic JavaScript types and type extensions...", "main": "main.js", "scripts": {