mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
a bugfix in .load(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8872ee6241
commit
61f171513b
@ -215,7 +215,6 @@ actions.Actions({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// basic life-cycle actions...
|
// basic life-cycle actions...
|
||||||
//
|
//
|
||||||
load: [
|
load: [
|
||||||
@ -673,12 +672,15 @@ actions.Actions(Client, {
|
|||||||
? this.ribbons.viewer
|
? this.ribbons.viewer
|
||||||
: viewer
|
: viewer
|
||||||
|
|
||||||
if(this.ribbons == null){
|
// XXX do we need to recycle the ribbons???
|
||||||
this.ribbons = ribbons.Ribbons(viewer, this.images)
|
if(this.ribbons != null){
|
||||||
// XXX is this correct???
|
this.ribbons.clear()
|
||||||
this.ribbons.__image_updaters = [this.updateImage.bind(this)]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.ribbons = ribbons.Ribbons(viewer, this.images)
|
||||||
|
// XXX is this correct???
|
||||||
|
this.ribbons.__image_updaters = [this.updateImage.bind(this)]
|
||||||
|
|
||||||
this.reload()
|
this.reload()
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user