mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f44d998f00
commit
89077a9915
@ -1227,6 +1227,7 @@ function(title, options){
|
|||||||
: 'off' } }))) }
|
: 'off' } }))) }
|
||||||
|
|
||||||
|
|
||||||
|
// XXX still buggy...
|
||||||
browse.items.batch =
|
browse.items.batch =
|
||||||
function(spec, callback){
|
function(spec, callback){
|
||||||
var that = this
|
var that = this
|
||||||
@ -1275,7 +1276,13 @@ function(spec, callback){
|
|||||||
mode) })
|
mode) })
|
||||||
// reset the callback on update...
|
// reset the callback on update...
|
||||||
.one('update', function(){
|
.one('update', function(){
|
||||||
this.dom.off('close', cb) })
|
// NOTE: we need to skip the initial update or it will
|
||||||
|
// .off(..) the handler right after it got bound...
|
||||||
|
// ...this will effectively shift the .off(..) stage
|
||||||
|
// by one iteration...
|
||||||
|
// XXX feels hacky...
|
||||||
|
this.one('update', function(){
|
||||||
|
this.off('close', cb) }) })
|
||||||
return this }
|
return this }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user