mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 19:10:08 +00:00 
			
		
		
		
	bugfix -- revise...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									7bb26676e3
								
							
						
					
					
						commit
						63539dde4b
					
				| @ -2028,6 +2028,7 @@ object.Constructor('Page', BasePage, { | ||||
| 	// XXX BUG: this does not respect strict of single pages if they do 
 | ||||
| 	// 		not exist...
 | ||||
| 	// 		...see: @macro(..) bug + .each(..)
 | ||||
| 	// 		FIXED: revise...
 | ||||
| 	asPages: async function*(path='.:$ARGS', strict=false){ | ||||
| 		// options...
 | ||||
| 		var args = [...arguments] | ||||
| @ -2049,6 +2050,10 @@ object.Constructor('Page', BasePage, { | ||||
| 			yield* page | ||||
| 		// handle lists in pages (actions, ... etc.)...
 | ||||
| 		} else { | ||||
| 			// page does not exist...
 | ||||
| 			if(strict  | ||||
| 					&& !(await page.exists())){ | ||||
| 				return } | ||||
| 			var data = await page.data | ||||
| 			data =  | ||||
| 				data instanceof types.Generator ? | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user