reworking events.js, mostly done...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-12-01 20:37:08 +03:00
parent fea70f6f5c
commit a26ab1e8ff
3 changed files with 3 additions and 5 deletions

View File

@ -152,7 +152,7 @@ object.Constructor('Eventfull', {
// call handle(false)
var did_handle = false
var handle = function(run=true){
did_handle = run === false
did_handle = true
var a = args[0] instanceof EventCommand ?
args.slice(1)
: args

View File

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

View File

@ -467,9 +467,7 @@ Events.cases({
// XXX this is triggered twice for some reason...
obj.one('event', function(){
called['event-one-time-handler'] =
(called['event-one-time-handler'] || 0) + 1
console.log('>>>>>>>>>>>>>>', called['event-one-time-handler'])
})
(called['event-one-time-handler'] || 0) + 1 })
obj
.event()
//.event()