mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
notes and some testing, still buggy...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fc88967873
commit
6419a83617
@ -1227,10 +1227,9 @@ function(title, options){
|
|||||||
: 'off' } }))) }
|
: 'off' } }))) }
|
||||||
|
|
||||||
|
|
||||||
// XXX should we patch the close callback not to get called twice???
|
|
||||||
// XXX BUG: if user passes a new spec each time this will not work...
|
// XXX BUG: if user passes a new spec each time this will not work...
|
||||||
// ...can we clear the old callkback??
|
// ...can we clear the old callkback??
|
||||||
// XXX investigate using the update event for unbinding and rebinding the close event...
|
// XXX still needs work...
|
||||||
browse.items.batch =
|
browse.items.batch =
|
||||||
function(spec, callback){
|
function(spec, callback){
|
||||||
var that = this
|
var that = this
|
||||||
@ -1255,6 +1254,9 @@ function(spec, callback){
|
|||||||
var cb
|
var cb
|
||||||
callback
|
callback
|
||||||
&& this.dialog
|
&& this.dialog
|
||||||
|
// XXX STUB this get's us around the close event getting triggered
|
||||||
|
// multiple times...
|
||||||
|
// ...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...
|
// XXX get the field data and pass it to the callback...
|
||||||
callback(
|
callback(
|
||||||
@ -1277,6 +1279,10 @@ function(spec, callback){
|
|||||||
// reset the callback on update...
|
// reset the callback on update...
|
||||||
// XXX this does not work yet...
|
// XXX this does not work yet...
|
||||||
.one('update', function(){
|
.one('update', function(){
|
||||||
|
// XXX for some reason this does not work...
|
||||||
|
// ...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...
|
// XXX BUG: this.off(..) will not work with non-standard events...
|
||||||
this.dom.off('close', cb) })
|
this.dom.off('close', cb) })
|
||||||
return this }
|
return this }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user