testing...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-01-29 17:17:37 +03:00
parent 32a3e1f26c
commit 341974fcc9

View File

@ -1251,6 +1251,7 @@ function(spec, callback){
// other...
: that(field) })
// batch callback...
var __v = Date.now()
var cb
callback
&& this.dialog
@ -1258,6 +1259,7 @@ function(spec, callback){
// multiple times...
// ...change to .close(..) when fixed...
.one('close', cb = function(mode){
console.log('callback:', __v)
// XXX get the field data and pass it to the callback...
callback(
// get the field-value pairs...
@ -1278,15 +1280,17 @@ function(spec, callback){
mode) })
// reset the callback on update...
// XXX this does not work yet...
// there seem to be two problems here:
// there seems 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(){
console.log('update:', __v)
// XXX BUG? this.off(..) will not work with non-standard events...
this.dom.off('close', cb) }) })
&& console.log('batch:', __v)
return this }