bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-11-18 03:26:33 +03:00
parent 6f1e8a6a90
commit 29c08de27c
2 changed files with 8 additions and 15 deletions

View File

@ -1756,9 +1756,10 @@ object.Constructor('Page', BasePage, {
} else {
var data = await page.data
data =
typeof(data) == 'function' ?
//data
data instanceof types.Generator ?
await data()
: typeof(data) == 'function' ?
data
: 'text' in data ?
data.text
: null
@ -2461,6 +2462,11 @@ module.System = {
Time to render: ${time}ms <br>
<hr>
${text}`},
// XXX REMOVE WHEN NOT NEEDED...
TEST: function(){
console.log('TEST')
return 'TEST' },
// XXX EXPERIMENTAL -- page types...
isAction: async function(){

View File

@ -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...
* ...do we need to support this???
* XXX BUG: parser: