mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 02:40:08 +00:00 
			
		
		
		
	Merge branch 'master' of github.com:flynx/ImageGrid
This commit is contained in:
		
						commit
						aec843a571
					
				| @ -66,7 +66,7 @@ var TagsClassPrototype = { | |||||||
| 								.sort() | 								.sort() | ||||||
| 								.join(':') }) | 								.join(':') }) | ||||||
| 						.join('/') }) | 						.join('/') }) | ||||||
| 					// sort paths within sets...
 | 					// sort sets containing paths...
 | ||||||
| 					//.split(/:/g)
 | 					//.split(/:/g)
 | ||||||
| 					//	.sort()
 | 					//	.sort()
 | ||||||
| 					//	.join(':') })
 | 					//	.join(':') })
 | ||||||
| @ -132,7 +132,7 @@ var TagsPrototype = { | |||||||
| 
 | 
 | ||||||
| 	// Match tags...
 | 	// Match tags...
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// 	Match two tags...
 | 	// 	Check if tags match...
 | ||||||
| 	// 	.match(tag, tag)
 | 	// 	.match(tag, tag)
 | ||||||
| 	// 		-> bool
 | 	// 		-> bool
 | ||||||
| 	//
 | 	//
 | ||||||
| @ -140,6 +140,10 @@ var TagsPrototype = { | |||||||
| 	// 	.match(tag)
 | 	// 	.match(tag)
 | ||||||
| 	// 		-> tags
 | 	// 		-> tags
 | ||||||
| 	//
 | 	//
 | ||||||
|  | 	// 	Filter out non-matching from tags...
 | ||||||
|  | 	// 	.match(tag, tags)
 | ||||||
|  | 	// 		-> tags
 | ||||||
|  | 	//
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// Query syntax:
 | 	// Query syntax:
 | ||||||
| 	// 	a		- tag
 | 	// 	a		- tag
 | ||||||
| @ -156,7 +160,7 @@ var TagsPrototype = { | |||||||
| 	// 	- component order is maintained.
 | 	// 	- component order is maintained.
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// Example:
 | 	// Example:
 | ||||||
| 	// 		set			match		no match
 | 	// 		path		match		no match
 | ||||||
| 	// 		--------------------------------
 | 	// 		--------------------------------
 | ||||||
| 	// 		a			a			z
 | 	// 		a			a			z
 | ||||||
| 	// 					a/b			b/c
 | 	// 					a/b			b/c
 | ||||||
| @ -192,8 +196,8 @@ var TagsPrototype = { | |||||||
| 		var that = this | 		var that = this | ||||||
| 
 | 
 | ||||||
| 		// get matching tags...
 | 		// get matching tags...
 | ||||||
| 		if(b == null){ | 		if(b == null || b instanceof Array){ | ||||||
| 			return this.tags() | 			return (b || this.tags()) | ||||||
| 				.filter(function(tag){  | 				.filter(function(tag){  | ||||||
| 					return that.match(a, tag)}) | 					return that.match(a, tag)}) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user