mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
investigating bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3d081b3902
commit
32a3e1f26c
@ -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 }
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user