mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
Merge branch 'master' of github.com:flynx/ImageGrid
This commit is contained in:
commit
aed1b8b000
@ -1251,6 +1251,7 @@ function(spec, callback){
|
|||||||
// other...
|
// other...
|
||||||
: that(field) })
|
: that(field) })
|
||||||
// batch callback...
|
// batch callback...
|
||||||
|
var __v = Date.now()
|
||||||
var cb
|
var cb
|
||||||
callback
|
callback
|
||||||
&& this.dialog
|
&& this.dialog
|
||||||
@ -1258,6 +1259,7 @@ function(spec, callback){
|
|||||||
// multiple times...
|
// multiple times...
|
||||||
// ...change to .close(..) when fixed...
|
// ...change to .close(..) when fixed...
|
||||||
.one('close', cb = function(mode){
|
.one('close', cb = function(mode){
|
||||||
|
console.log('callback:', __v)
|
||||||
// XXX get the field data and pass it to the callback...
|
// XXX get the field data and pass it to the callback...
|
||||||
callback(
|
callback(
|
||||||
// get the field-value pairs...
|
// get the field-value pairs...
|
||||||
@ -1278,15 +1280,18 @@ function(spec, callback){
|
|||||||
mode) })
|
mode) })
|
||||||
// reset the callback on update...
|
// reset the callback on update...
|
||||||
// XXX this does not work yet...
|
// XXX this does not work yet...
|
||||||
// there seem to be two problems here:
|
// there seems to be two problems here:
|
||||||
// - 'update' is triggered on first draw, thus
|
// - 'update' is triggered on first draw, thus
|
||||||
// triggering .off(..)...
|
// triggering .off(..)... (CONFIRMED)
|
||||||
// ...this should lead to the callback(..) not
|
// ...this should lead to the callback(..) not
|
||||||
// being called at all -- see next issue...
|
// being called at all -- see next issue...
|
||||||
// - .off(..) for some reason does not work...
|
// - .off(..) for some reason does not work... (CONFIRMED)
|
||||||
|
// ...are we off-ing the right source???
|
||||||
.one('update', function(){
|
.one('update', function(){
|
||||||
|
console.log('update:', __v)
|
||||||
// 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) })
|
||||||
|
&& console.log('batch:', __v)
|
||||||
return this }
|
return this }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user