mirror of
				https://github.com/flynx/diff.js.git
				synced 2025-10-31 03:50:13 +00:00 
			
		
		
		
	now patterns seem to work, but still not too happy with the code...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									d45db4d848
								
							
						
					
					
						commit
						7288e9acba
					
				
							
								
								
									
										11
									
								
								diff.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								diff.js
									
									
									
									
									
								
							| @ -256,9 +256,8 @@ var LogicTypePrototype = { | |||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		var res = this.__cmp__(obj, cmp, cache) | 		var res = this.__cmp__(obj, cmp, cache) | ||||||
| 			|| (obj.__cmp__ ?  | 			|| (obj.__cmp__  | ||||||
| 				obj.__cmp__(this, cmp, cache)  | 				&& obj.__cmp__(this, cmp, cache)) | ||||||
| 				: false) |  | ||||||
| 		c.set(obj, res) | 		c.set(obj, res) | ||||||
| 
 | 
 | ||||||
| 		return res | 		return res | ||||||
| @ -772,7 +771,11 @@ module.Types = { | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 		// same object...
 | 		// same object...
 | ||||||
| 		if(bcmp(A, B)){ | 		// XXX this will essentially do a full diff of sub-objects, not 
 | ||||||
|  | 		// 		sure if this is the right way to go here...
 | ||||||
|  | 		// 		...this is not that big a dean as we are caching everything
 | ||||||
|  | 		// 		but still this is not obvious...
 | ||||||
|  | 		if(bcmp(A, B, cmp)){ | ||||||
| 			return null | 			return null | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user