Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-02-03 23:47:27 +03:00
parent 89077a9915
commit dcd138e7bb

View File

@ -1227,7 +1227,7 @@ function(title, options){
: 'off' } }))) } : 'off' } }))) }
// XXX still buggy... // XXX revise...
browse.items.batch = browse.items.batch =
function(spec, callback){ function(spec, callback){
var that = this var that = this
@ -1280,7 +1280,7 @@ function(spec, callback){
// .off(..) the handler right after it got bound... // .off(..) the handler right after it got bound...
// ...this will effectively shift the .off(..) stage // ...this will effectively shift the .off(..) stage
// by one iteration... // by one iteration...
// XXX feels hacky... // XXX feels hacky -- revise...
this.one('update', function(){ this.one('update', function(){
this.off('close', cb) }) }) this.off('close', cb) }) })
return this } return this }