cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-02-05 16:05:13 +03:00
parent 587d1932ac
commit cf412acff2

View File

@ -1227,6 +1227,7 @@ function(title, options){
: 'off' } }))) } : 'off' } }))) }
// XXX doc!!!
// XXX revise... // XXX revise...
browse.items.batch = browse.items.batch =
function(spec, callback){ function(spec, callback){
@ -1256,7 +1257,6 @@ function(spec, callback){
// event getting triggered multiple times... // event getting triggered multiple times...
// ...change to .close(..) when fixed... // ...change to .close(..) when fixed...
.one('close', cb = function(mode){ .one('close', cb = function(mode){
// XXX get the field data and pass it to the callback...
callback( callback(
// get the field-value pairs... // get the field-value pairs...
spec.reduce(function(res, e){ spec.reduce(function(res, e){
@ -1272,7 +1272,6 @@ function(spec, callback){
// but passing it here is cleaner than forcing // but passing it here is cleaner than forcing
// the user to get it via closure... // the user to get it via closure...
spec, spec,
// XXX is this the right spot for this???
mode) }) mode) })
// reset the callback on update... // reset the callback on update...
.one('update', function(){ .one('update', function(){