mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									68fd915a84
								
							
						
					
					
						commit
						8553ca8594
					
				| @ -3187,6 +3187,7 @@ var BaseBrowserPrototype = { | |||||||
| 	// 		- from/to/around/count support...
 | 	// 		- from/to/around/count support...
 | ||||||
| 	// 		- ability to render separate items/sub-trees or lists of items...
 | 	// 		- ability to render separate items/sub-trees or lists of items...
 | ||||||
| 	// 			...pass the list to .walk(..), i.e. .walk(list/query, ...)
 | 	// 			...pass the list to .walk(..), i.e. .walk(list/query, ...)
 | ||||||
|  | 	// XXX revise how options are passed down the inlined/nested browsers...
 | ||||||
| 	// XXX doc...
 | 	// XXX doc...
 | ||||||
| 	render: function(options, renderer){ | 	render: function(options, renderer){ | ||||||
| 		var that = this | 		var that = this | ||||||
| @ -3207,12 +3208,12 @@ var BaseBrowserPrototype = { | |||||||
| 			: 0 | 			: 0 | ||||||
| 
 | 
 | ||||||
| 		options = Object.assign( | 		options = Object.assign( | ||||||
| 			Object.create(this.options || {}), | 				Object.create(this.options || {}), | ||||||
| 			{  | 				{  | ||||||
| 				iterateNonIterable: true, | 					iterateNonIterable: true, | ||||||
| 				includeInlinedBlocks: true, | 					includeInlinedBlocks: true, | ||||||
| 			},  | 				},  | ||||||
| 			options || {}) | 				options || {}) | ||||||
| 
 | 
 | ||||||
| 		var render = renderer || this.__renderer__ | 		var render = renderer || this.__renderer__ | ||||||
| 		render = render.root == null ? | 		render = render.root == null ? | ||||||
| @ -3294,6 +3295,8 @@ var BaseBrowserPrototype = { | |||||||
| 								(l = (e.children instanceof BaseBrowser ?  | 								(l = (e.children instanceof BaseBrowser ?  | ||||||
| 										e.children  | 										e.children  | ||||||
| 										: e) | 										: e) | ||||||
|  | 									// XXX we for some reason lose part 
 | ||||||
|  | 									// 		of the options here...
 | ||||||
| 									.render(options, render, i+1, p)) | 									.render(options, render, i+1, p)) | ||||||
| 								: children(true) } | 								: children(true) } | ||||||
| 
 | 
 | ||||||
| @ -4266,7 +4269,7 @@ module.HTMLRenderer = { | |||||||
| 						: this.split(/\s+/g) })) | 						: this.split(/\s+/g) })) | ||||||
| 			// special classes...
 | 			// special classes...
 | ||||||
| 			.concat( | 			.concat( | ||||||
| 				(options.shorthandItemClasses || {}) | 				(options.shorthandItemClasses || []) | ||||||
| 					.filter(function(cls){  | 					.filter(function(cls){  | ||||||
| 						return !!item[cls] }))) | 						return !!item[cls] }))) | ||||||
| 
 | 
 | ||||||
| @ -5425,7 +5428,7 @@ var HTMLBrowserPrototype = { | |||||||
| 						: this.split(/\s+/g) })) | 						: this.split(/\s+/g) })) | ||||||
| 			// special classes...
 | 			// special classes...
 | ||||||
| 			.concat( | 			.concat( | ||||||
| 				(options.shorthandItemClasses || {}) | 				(options.shorthandItemClasses || []) | ||||||
| 					.filter(function(cls){  | 					.filter(function(cls){  | ||||||
| 						return !!item[cls] }))) | 						return !!item[cls] }))) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user