mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									be6fd5f14f
								
							
						
					
					
						commit
						2234c8dff1
					
				| @ -918,7 +918,7 @@ var BaseTagsPrototype = { | |||||||
| 	// 		not sure how much performance this actually gains though.
 | 	// 		not sure how much performance this actually gains though.
 | ||||||
| 	hasTag: function(tag){ | 	hasTag: function(tag){ | ||||||
| 		for(var t of this.tags()){ | 		for(var t of this.tags()){ | ||||||
| 			if(this.match(tag, t)){ | 			if(tag == t || this.match(tag, t)){ | ||||||
| 				return true } } | 				return true } } | ||||||
| 		return false }, | 		return false }, | ||||||
| 	has: function(value){ | 	has: function(value){ | ||||||
| @ -1632,7 +1632,9 @@ var BaseTagsPrototype = { | |||||||
| 	//
 | 	//
 | ||||||
| 	// NOTE: this will touch only longest unique paths (see: .uniquePaths(..))
 | 	// NOTE: this will touch only longest unique paths (see: .uniquePaths(..))
 | ||||||
| 	makePathsPersistent: function(){ | 	makePathsPersistent: function(){ | ||||||
| 		this.persistent = new Set(this.uniquePaths()) | 		this.persistent =  | ||||||
|  | 			(this.persistent || new Set()) | ||||||
|  | 				.unite(this.uniquePaths()) | ||||||
| 		return this }, | 		return this }, | ||||||
| 
 | 
 | ||||||
| 	// Optimize tags...
 | 	// Optimize tags...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user