now dependencies are stored on the root page too...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-08-22 12:43:49 +03:00
parent ff124c0a75
commit 6fe069ba72

View File

@ -536,7 +536,13 @@ object.Constructor('Page', BasePage, {
// <path>: Set([<path>, ...]),
// }
//
dependencies: undefined,
//dependencies: undefined,
//__dependencies: undefined,
get dependencies(){
return (this.root ?? this).__dependencies ?? {} },
set dependencies(value){
((this.root ?? this).__dependencies) = value },
// NOTE: for this to populate .text must be done at least once...
get depends(){
return (this.dependencies ?? {})[this.path] },