mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a60443e3ec
commit
7f387d8f3d
4
event.js
4
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 },
|
||||
})
|
||||
|
||||
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user