a bugfix in .load(..)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-24 17:19:53 +03:00
parent 8872ee6241
commit 61f171513b

View File

@ -215,7 +215,6 @@ actions.Actions({
}
},
// basic life-cycle actions...
//
load: [
@ -673,12 +672,15 @@ actions.Actions(Client, {
? this.ribbons.viewer
: viewer
if(this.ribbons == null){
this.ribbons = ribbons.Ribbons(viewer, this.images)
// XXX is this correct???
this.ribbons.__image_updaters = [this.updateImage.bind(this)]
// XXX do we need to recycle the ribbons???
if(this.ribbons != null){
this.ribbons.clear()
}
this.ribbons = ribbons.Ribbons(viewer, this.images)
// XXX is this correct???
this.ribbons.__image_updaters = [this.updateImage.bind(this)]
this.reload()
}
}],