mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									186a45140a
								
							
						
					
					
						commit
						a145667637
					
				| @ -712,24 +712,19 @@ function(list, options){ | |||||||
| 	} | 	} | ||||||
| 	options = opts | 	options = opts | ||||||
| 
 | 
 | ||||||
| 	/* |  | ||||||
| 	if(id in dialog.__list && id in dialog.__editable){ |  | ||||||
| 		var lst = dialog.__list[id] |  | ||||||
| 		var editable = dialog.__editable[id] |  | ||||||
| 
 |  | ||||||
| 	} else { |  | ||||||
| 	//*/
 |  | ||||||
| 	var lst = list instanceof Function ?  | 	var lst = list instanceof Function ?  | ||||||
| 		list()  | 		list()  | ||||||
| 		: list | 		: list | ||||||
| 		var editable = dialog.__editable[id] = lst instanceof Array && dialog.__editable[id] | 	var editable = dialog.__editable[id] = lst instanceof Array  | ||||||
|  | 		// keep editable state...
 | ||||||
|  | 		&& dialog.__editable[id] | ||||||
|  | 
 | ||||||
| 	// view objects...
 | 	// view objects...
 | ||||||
| 	// NOTE: we .slice() here to make the changes a bit better packaged
 | 	// NOTE: we .slice() here to make the changes a bit better packaged
 | ||||||
| 	// 		or discrete and not done as they come in...
 | 	// 		or discrete and not done as they come in...
 | ||||||
| 	lst = lst instanceof Array ? lst.slice() : Object.keys(lst) | 	lst = lst instanceof Array ? lst.slice() : Object.keys(lst) | ||||||
| 
 | 
 | ||||||
| 	dialog.__list[id] = lst | 	dialog.__list[id] = lst | ||||||
| 	//}
 |  | ||||||
| 
 | 
 | ||||||
| 	var buttons = options.buttons = (options.buttons || []).slice() | 	var buttons = options.buttons = (options.buttons || []).slice() | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user