investigating bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-01-28 16:52:46 +03:00
parent 3d081b3902
commit 32a3e1f26c

View File

@ -1278,12 +1278,15 @@ function(spec, callback){
mode) })
// reset the callback on update...
// XXX this does not work yet...
// there seem to be two problems here:
// - 'update' is triggered on first draw, thus
// triggering .off(..)...
// ...this should lead to the callback(..) not
// being called at all -- see next issue...
// - .off(..) for some reason does not work...
.one('update', function(){
// XXX I'd expect to see cb(..) not getting called
// at all (as .update(..) is called on first draw) but
// it does not get unbound...
// XXX BUG? this.off(..) will not work with non-standard events...
this.dom.off('close', cb) })
this.dom.off('close', cb) }) })
return this }