mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 19:10:08 +00:00 
			
		
		
		
	notes and cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									514491c171
								
							
						
					
					
						commit
						8f7300006e
					
				| @ -489,9 +489,6 @@ module.BaseParser = { | |||||||
| 						return {...value, skip: true} } | 						return {...value, skip: true} } | ||||||
| 					// macro call...
 | 					// macro call...
 | ||||||
| 					return Promise.awaitOrRun( | 					return Promise.awaitOrRun( | ||||||
| 						// XXX due to the unpredictable behavior of await we 
 |  | ||||||
| 						// 		need to call this only AFTER the previous call
 |  | ||||||
| 						// 		is done...
 |  | ||||||
| 						that.callMacro(page, name, args, body, state), | 						that.callMacro(page, name, args, body, state), | ||||||
| 						function(res){ | 						function(res){ | ||||||
| 							res = res ?? '' | 							res = res ?? '' | ||||||
| @ -501,8 +498,6 @@ module.BaseParser = { | |||||||
| 								return res | 								return res | ||||||
| 							} else { | 							} else { | ||||||
| 								return [res] } }) }, | 								return [res] } }) }, | ||||||
| 				// XXX BUG: this is not called on errors in:
 |  | ||||||
| 				// 			file:///L:/work/pWiki/pwiki2.html#/Tests/ParseErrorOutputTest
 |  | ||||||
| 				function(err){ | 				function(err){ | ||||||
| 					console.error(err) | 					console.error(err) | ||||||
| 					return page.parse( | 					return page.parse( | ||||||
|  | |||||||
| @ -296,6 +296,7 @@ var updateStyle = async function(){ | |||||||
| //*/ | //*/ | ||||||
| 
 | 
 | ||||||
| // XXX might be a good idea to make this a method of pwiki??? | // XXX might be a good idea to make this a method of pwiki??? | ||||||
|  | // XXX the page seems to be broken... | ||||||
| var CONFIG_UPDATED = false | var CONFIG_UPDATED = false | ||||||
| var updateConfig = async function(){ | var updateConfig = async function(){ | ||||||
| 	// XXX need to set this to something... | 	// XXX need to set this to something... | ||||||
| @ -449,11 +450,11 @@ require(['./browser'], function(browser){ | |||||||
| 			if(STYLE_UPDATED){ | 			if(STYLE_UPDATED){ | ||||||
| 				STYLE_UPDATED = false | 				STYLE_UPDATED = false | ||||||
| 				await updateStyle() } | 				await updateStyle() } | ||||||
| 			//*/ |  | ||||||
| 			// config... | 			// config... | ||||||
| 			if(CONFIG_UPDATED){ | 			if(CONFIG_UPDATED){ | ||||||
| 				CONFIG_UPDATED = false | 				CONFIG_UPDATED = false | ||||||
| 				await updateConfig() } | 				await updateConfig() } | ||||||
|  | 			//*/ | ||||||
| 			// NOTE: we are intentionally not awaiting for this -- this  | 			// NOTE: we are intentionally not awaiting for this -- this  | ||||||
| 			//		separates the navigate and load events... | 			//		separates the navigate and load events... | ||||||
| 			logTime( | 			logTime( | ||||||
| @ -510,7 +511,7 @@ require(['./browser'], function(browser){ | |||||||
| 		// setup global stuff... | 		// setup global stuff... | ||||||
| 		// XXX GLOBAL_STYLE | 		// XXX GLOBAL_STYLE | ||||||
| 		//updateStyle() | 		//updateStyle() | ||||||
| 		updateConfig() | 		//updateConfig() | ||||||
| 		// show current page... | 		// show current page... | ||||||
| 		pwiki.location = decodeURI(location.hash).slice(1) }) })  | 		pwiki.location = decodeURI(location.hash).slice(1) }) })  | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user