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... // 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()
} }
}], }],