mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 11:00:08 +00:00 
			
		
		
		
	bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									6f1e8a6a90
								
							
						
					
					
						commit
						29c08de27c
					
				| @ -1756,9 +1756,10 @@ object.Constructor('Page', BasePage, { | |||||||
| 		} else { | 		} else { | ||||||
| 			var data = await page.data | 			var data = await page.data | ||||||
| 			data =  | 			data =  | ||||||
| 				typeof(data) == 'function' ? | 				data instanceof types.Generator ? | ||||||
| 					//data
 |  | ||||||
| 					await data() | 					await data() | ||||||
|  | 				: typeof(data) == 'function' ? | ||||||
|  | 					data | ||||||
| 				: 'text' in data ? | 				: 'text' in data ? | ||||||
| 					data.text | 					data.text | ||||||
| 				: null | 				: null | ||||||
| @ -2462,6 +2463,11 @@ module.System = { | |||||||
| 			<hr> | 			<hr> | ||||||
| 			${text}`},
 | 			${text}`},
 | ||||||
| 
 | 
 | ||||||
|  | 	// XXX REMOVE WHEN NOT NEEDED...
 | ||||||
|  | 	TEST: function(){ | ||||||
|  | 		console.log('TEST') | ||||||
|  | 		return 'TEST' }, | ||||||
|  | 	 | ||||||
| 	// XXX EXPERIMENTAL -- page types...
 | 	// XXX EXPERIMENTAL -- page types...
 | ||||||
| 	isAction: async function(){ | 	isAction: async function(){ | ||||||
| 		return await this.get('..').type == 'action' ? | 		return await this.get('..').type == 'action' ? | ||||||
|  | |||||||
							
								
								
									
										13
									
								
								pwiki2.js
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								pwiki2.js
									
									
									
									
									
								
							| @ -36,19 +36,6 @@ | |||||||
| * 		-  | * 		-  | ||||||
| * | * | ||||||
| * | * | ||||||
| * XXX BUG /tree/time gives a blank time... |  | ||||||
| * 		...problem: actions seem to be called twice, not yet sure why... |  | ||||||
| * 		for an action: |  | ||||||
| * 			TEST: async function(){ |  | ||||||
| * 				console.log('TEST') |  | ||||||
| * 				return 'TEST' }, |  | ||||||
| * 		these call it twice: |  | ||||||
| * 			await p.pwiki |  | ||||||
| * 				.get('/moo/TEST').text |  | ||||||
| * 			await p.pwiki |  | ||||||
| * 				.get('/moo/TEST') |  | ||||||
| * 					.parse('@source(.)') |  | ||||||
| * 		XXX check if this applies to <page>.actions |  | ||||||
| * XXX BUG: count does not appear to affect /Test/list/generator and /Test/list/static... | * XXX BUG: count does not appear to affect /Test/list/generator and /Test/list/static... | ||||||
| * 		...do we need to support this??? | * 		...do we need to support this??? | ||||||
| * XXX BUG: parser: | * XXX BUG: parser: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user