mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									48ed38ebc0
								
							
						
					
					
						commit
						d0dad4811a
					
				| @ -2898,7 +2898,6 @@ var BaseBrowserPrototype = { | |||||||
| 		return path.length == 1 ? | 		return path.length == 1 ? | ||||||
| 			this | 			this | ||||||
| 			: this.get(path.slice(0, -1), options) }, | 			: this.get(path.slice(0, -1), options) }, | ||||||
| 	// XXX index seems to bw wrong... 
 |  | ||||||
| 	positionOf: function(item, options){ | 	positionOf: function(item, options){ | ||||||
| 		return this.search( | 		return this.search( | ||||||
| 			item == null ?  | 			item == null ?  | ||||||
| @ -2912,15 +2911,6 @@ var BaseBrowserPrototype = { | |||||||
| 					noQueryCheck: true, | 					noQueryCheck: true, | ||||||
| 				}, | 				}, | ||||||
| 				options || {})).concat([[-1, undefined]]).shift() }, | 				options || {})).concat([[-1, undefined]]).shift() }, | ||||||
| 	// XXX BUG: 
 |  | ||||||
| 	// 		dialog.get(dialog.indexOf(dialog.focused)) === dialog.focused 
 |  | ||||||
| 	// 			...should be true but is not!!!
 |  | ||||||
| 	// 			... .pathOf(..) is not affected by this bug...
 |  | ||||||
| 	// 		dialog.search(dialog.focused, (e, i, p) => i)
 |  | ||||||
| 	// 			this is wrong...
 |  | ||||||
| 	// 		dialog.walk((e, i, p, next, stop) => e === dialog.focused && stop(i))
 |  | ||||||
| 	// 			this gets the correct index...
 |  | ||||||
| 	// 		...seems the problem is in the .search(..) default options...
 |  | ||||||
| 	indexOf: function(item, options){ | 	indexOf: function(item, options){ | ||||||
| 		return this.positionOf(item, options)[0] }, | 		return this.positionOf(item, options)[0] }, | ||||||
| 	pathOf: function(item, options){ | 	pathOf: function(item, options){ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user