mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									d77c01e63e
								
							
						
					
					
						commit
						1eebfe3020
					
				| @ -870,14 +870,12 @@ var StatusLogActions = actions.Actions({ | |||||||
| 	clearStatusLog: ['Interface/Clear status log', | 	clearStatusLog: ['Interface/Clear status log', | ||||||
| 		{mode: 'advancedBrowseModeAction'}, | 		{mode: 'advancedBrowseModeAction'}, | ||||||
| 		function(){ | 		function(){ | ||||||
| 			delete this.__status_log | 			delete this.__status_log }], | ||||||
| 		}], |  | ||||||
| 	statusMessage: ['- Interface/', | 	statusMessage: ['- Interface/', | ||||||
| 		function(){ | 		function(){ | ||||||
| 			var msg = [...arguments] | 			var msg = [...arguments] | ||||||
| 			if(msg.len == 0){ | 			if(msg.len == 0){ | ||||||
| 				return | 				return } | ||||||
| 			} |  | ||||||
| 			var log = this.__status_log = this.__status_log || [] | 			var log = this.__status_log = this.__status_log || [] | ||||||
| 			 | 			 | ||||||
| 			// XXX should we convert here and how???
 | 			// XXX should we convert here and how???
 | ||||||
| @ -886,8 +884,7 @@ var StatusLogActions = actions.Actions({ | |||||||
| 			// truncate the log...
 | 			// truncate the log...
 | ||||||
| 			var s = this.config['ui-status-log-size'] | 			var s = this.config['ui-status-log-size'] | ||||||
| 			if(s != 0 && log.length > (s || 100)){ | 			if(s != 0 && log.length > (s || 100)){ | ||||||
| 				log.splice(0, log.length - (s || 100)) | 				log.splice(0, log.length - (s || 100)) } | ||||||
| 			} |  | ||||||
| 
 | 
 | ||||||
| 			// XXX show the message above the status bar (same style)...
 | 			// XXX show the message above the status bar (same style)...
 | ||||||
| 			// XXX
 | 			// XXX
 | ||||||
|  | |||||||
| @ -861,8 +861,9 @@ var DataPrototype = { | |||||||
| 	// 		target image is not loaded.
 | 	// 		target image is not loaded.
 | ||||||
| 	// 		Use offset to explicitly get the image before/after target.
 | 	// 		Use offset to explicitly get the image before/after target.
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// XXX most of the complexity here comes from argument DSL parsing,
 | 	// NOTE: most of the complexity here comes from argument DSL parsing,
 | ||||||
| 	// 		might be good to revise argument syntax and handling...
 | 	// 		might be good to revise argument syntax and handling...
 | ||||||
|  | 	//
 | ||||||
| 	// XXX doc needs revision....
 | 	// XXX doc needs revision....
 | ||||||
| 	getImage: function(target, mode, list){ | 	getImage: function(target, mode, list){ | ||||||
| 		// empty data...
 | 		// empty data...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user