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": {