mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-04 05:10:07 +00:00 
			
		
		
		
	documented the changes in last commit...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									178a4fbb87
								
							
						
					
					
						commit
						150d29ac2b
					
				@ -162,11 +162,27 @@ Feature.prototype = FeatureProto
 | 
				
			|||||||
Feature.prototype.constructor = Feature
 | 
					Feature.prototype.constructor = Feature
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// XXX experimental...
 | 
					 | 
				
			||||||
// 		...not sure if the global feature set is a good idea...
 | 
					 | 
				
			||||||
var FeatureSet =
 | 
					var FeatureSet =
 | 
				
			||||||
module.FeatureSet = {
 | 
					module.FeatureSet = {
 | 
				
			||||||
	// NOTE: this will fix dependency ordering errors except for two:
 | 
						// Build feature list...
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// 	Build a list of all registered features
 | 
				
			||||||
 | 
						// 	.buildFeatureList()
 | 
				
			||||||
 | 
						// 	.buildFeatureList(actions)
 | 
				
			||||||
 | 
						// 		-> list
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// 	Build a list of given features
 | 
				
			||||||
 | 
						// 	.buildFeatureList(null, list)
 | 
				
			||||||
 | 
						// 	.buildFeatureList(actions, list)
 | 
				
			||||||
 | 
						// 		-> list
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// NOTE: some feature .isApplicable(..) may expect the action set thus
 | 
				
			||||||
 | 
						// 		making it required for building a feature list.
 | 
				
			||||||
 | 
						// NOTE: this will try and keep the order as close as possible to the
 | 
				
			||||||
 | 
						// 		original as possible, this if the list is correctly ordered 
 | 
				
			||||||
 | 
						// 		it will not be affected...
 | 
				
			||||||
 | 
						// NOTE: this will fix most dependency ordering errors except for two:
 | 
				
			||||||
	// 		- cyclic dependencies
 | 
						// 		- cyclic dependencies
 | 
				
			||||||
	// 			e.g. a -> b and b -> a, here there is no way to reorder
 | 
						// 			e.g. a -> b and b -> a, here there is no way to reorder
 | 
				
			||||||
	// 				a and b to resolve this.
 | 
						// 				a and b to resolve this.
 | 
				
			||||||
@ -288,7 +304,8 @@ module.FeatureSet = {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// XXX might be good to give better reasoning to dependency errors...
 | 
						// XXX might be good to give better reasoning/classification to 
 | 
				
			||||||
 | 
						// 		dependency errors...
 | 
				
			||||||
	setup: function(obj, lst){
 | 
						setup: function(obj, lst){
 | 
				
			||||||
		lst = lst.constructor !== Array ? [lst] : lst
 | 
							lst = lst.constructor !== Array ? [lst] : lst
 | 
				
			||||||
		var features = this.buildFeatureList(obj, lst)
 | 
							var features = this.buildFeatureList(obj, lst)
 | 
				
			||||||
 | 
				
			|||||||
@ -230,6 +230,8 @@ $(function(){
 | 
				
			|||||||
			// NOTE: only one of these can be set...
 | 
								// NOTE: only one of these can be set...
 | 
				
			||||||
			'ui-current-image-indicator-hide-on-fast-screen-nav',
 | 
								'ui-current-image-indicator-hide-on-fast-screen-nav',
 | 
				
			||||||
			//'ui-current-image-indicator-hide-on-screen-nav',
 | 
								//'ui-current-image-indicator-hide-on-screen-nav',
 | 
				
			||||||
 | 
							'ui-image-state-indicator',
 | 
				
			||||||
 | 
							'ui-global-state-indicator',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// experimental and optional features...
 | 
							// experimental and optional features...
 | 
				
			||||||
		//'auto-single-image',
 | 
							//'auto-single-image',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user