mirror of
				https://github.com/flynx/diff.js.git
				synced 2025-10-30 19:40:10 +00:00 
			
		
		
		
	notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									ef4048497a
								
							
						
					
					
						commit
						d45db4d848
					
				
							
								
								
									
										7
									
								
								diff.js
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								diff.js
									
									
									
									
									
								
							| @ -736,6 +736,8 @@ module.Types = { | |||||||
| 		options.as_object = options.as_object || [] | 		options.as_object = options.as_object || [] | ||||||
| 
 | 
 | ||||||
| 		// basic compare...
 | 		// basic compare...
 | ||||||
|  | 		// XXX nesting still does not work...
 | ||||||
|  | 		// 		diff(OR([1,2], [2,1]), [1,2]) -> false (should be true)
 | ||||||
| 		// XXX do we need to differentiate things like: new Number(123) vs. 123???
 | 		// XXX do we need to differentiate things like: new Number(123) vs. 123???
 | ||||||
| 		var bcmp = function(a, b, cmp){ | 		var bcmp = function(a, b, cmp){ | ||||||
| 			return a === b  | 			return a === b  | ||||||
| @ -746,10 +748,9 @@ module.Types = { | |||||||
| 				// logic patterns...
 | 				// logic patterns...
 | ||||||
| 				// XXX not final...
 | 				// XXX not final...
 | ||||||
| 				|| (a instanceof LogicType  | 				|| (a instanceof LogicType  | ||||||
| 					&& a.cmp(b, cmp)) | 					&& a.cmp(b, cmp, cache)) | ||||||
| 				|| (b instanceof LogicType  | 				|| (b instanceof LogicType  | ||||||
| 					&& b.cmp(a, cmp)) | 					&& b.cmp(a, cmp, cache)) } | ||||||
| 		} |  | ||||||
| 		// deep compare...
 | 		// deep compare...
 | ||||||
| 		var cmp = options.cmp = options.cmp  | 		var cmp = options.cmp = options.cmp  | ||||||
| 			|| function(a, b){ | 			|| function(a, b){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user