mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 19:30:07 +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...
 | ||||
| 	//
 | ||||
| 	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() | ||||
| 			} | ||||
| 		}], | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user