From a44fe59475a9d5461a3a5f48d2d75a8e9fb0e281 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 25 May 2022 02:02:22 +0300 Subject: [PATCH] minor tweak... Signed-off-by: Alex A. Naanou --- pwiki2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pwiki2.js b/pwiki2.js index f18afcd..4850099 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -1038,10 +1038,12 @@ object.Constructor('BasePage', { __delete__: function(){ return this }, // NOTE: we need to proxy .clone(..) back to parent so as to // avoid overloading .data in the children too... + // NOTE: we are also keeping all first level queries resolving + // to current path also virtual... clone: function(...args){ var res = that.clone(...args) return res.path == this.path ? - that.virtual(data) + that.virtual(this.data) : res }, data: Object.assign( {