mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									cd7cb020b7
								
							
						
					
					
						commit
						4e1b953398
					
				| @ -355,6 +355,7 @@ var DataPrototype = { | |||||||
| 	// Clear elements from data...
 | 	// Clear elements from data...
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// 	Clear all data:
 | 	// 	Clear all data:
 | ||||||
|  | 	// 	.clear()
 | ||||||
| 	// 	.clear('*')
 | 	// 	.clear('*')
 | ||||||
| 	// 	.clear('all')
 | 	// 	.clear('all')
 | ||||||
| 	// 		-> data
 | 	// 		-> data
 | ||||||
| @ -390,14 +391,10 @@ var DataPrototype = { | |||||||
| 	// 		other than null?
 | 	// 		other than null?
 | ||||||
| 	// XXX should this return this or the removed gids???
 | 	// XXX should this return this or the removed gids???
 | ||||||
| 	clear: function(gids, deep, clear_empty){ | 	clear: function(gids, deep, clear_empty){ | ||||||
| 		// defaults...
 | 		gids = gids || 'all' | ||||||
| 		deep = deep == null ? true : false | 		deep = deep == null ? true : false | ||||||
| 		clear_empty = clear_empty == null ? true : false  | 		clear_empty = clear_empty == null ? true : false  | ||||||
| 
 | 
 | ||||||
| 		if(gids == null){ |  | ||||||
| 			return this |  | ||||||
| 		} |  | ||||||
| 
 |  | ||||||
| 		// clear all data...
 | 		// clear all data...
 | ||||||
| 		if(gids == '*' || gids == 'all'){ | 		if(gids == '*' || gids == 'all'){ | ||||||
| 			this._reset() | 			this._reset() | ||||||
|  | |||||||
| @ -758,6 +758,7 @@ var FileSystemWriterActions = actions.Actions({ | |||||||
| 	// 		...both denodeify(..)'ed
 | 	// 		...both denodeify(..)'ed
 | ||||||
| 	// XXX export current state as a full loadable index
 | 	// XXX export current state as a full loadable index
 | ||||||
| 	// XXX might be interesting to unify this and .exportView(..)
 | 	// XXX might be interesting to unify this and .exportView(..)
 | ||||||
|  | 	// XXX should this return a promise??? ...a clean promise???
 | ||||||
| 	// XXX local collections???
 | 	// XXX local collections???
 | ||||||
| 	exportCollection: ['File/Export as collection', | 	exportCollection: ['File/Export as collection', | ||||||
| 		function(path, logger){ | 		function(path, logger){ | ||||||
|  | |||||||
| @ -263,7 +263,7 @@ module.ViewerActions = actions.Actions({ | |||||||
| 			this.ribbons.updateImage(gids) | 			this.ribbons.updateImage(gids) | ||||||
| 		}], | 		}], | ||||||
| 	clear: [ | 	clear: [ | ||||||
| 		function(){ this.ribbon && this.ribbons.clear() }], | 		function(){ this.ribbons && this.ribbons.clear() }], | ||||||
| 	clone: [function(full){ | 	clone: [function(full){ | ||||||
| 		return function(res){ | 		return function(res){ | ||||||
| 			if(this.ribbons){ | 			if(this.ribbons){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user