From 4bf81c5cdbb3fcbf3543d0cd1f80f21624f982bf Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 2 May 2022 02:18:11 +0300 Subject: [PATCH] minor refactoring... Signed-off-by: Alex A. Naanou --- pwiki2.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index aaee874..957a9a5 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -495,8 +495,8 @@ object.Constructor('BasePage', { // this will simply be ignored, i.e. passed trough the parser // without change... -var parser = -module.parser = { +var BaseParser = +module.BaseParser = { // patterns... // @@ -870,6 +870,11 @@ module.parser = { .join('') }, } +var parser = +module.parser = { + __proto__: BaseParser, +} + // XXX PATH_VARS need to handle path variables... // XXX macros and filters should be features for simpler plugin handlng (???)