mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 02:50:08 +00:00 
			
		
		
		
	node merging undo can merge merged sets...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									426e8999ba
								
							
						
					
					
						commit
						a24eb02876
					
				| @ -1259,7 +1259,12 @@ var Outline = { | |||||||
| 		if(stack == null || stack.length == 0){ | 		if(stack == null || stack.length == 0){ | ||||||
| 			return this } | 			return this } | ||||||
| 		stack.push( | 		stack.push( | ||||||
| 			stack.splice(-n, n)) | 			stack.splice(-n, n) | ||||||
|  | 				.map(function(e){ | ||||||
|  | 					return typeof(e[1]) == 'string' ? | ||||||
|  | 						[e] | ||||||
|  | 						: e }) | ||||||
|  | 				.flat()) | ||||||
| 		return this }, | 		return this }, | ||||||
| 	clearUndo: function(){ | 	clearUndo: function(){ | ||||||
| 		this.__undo_stack = undefined | 		this.__undo_stack = undefined | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user