mirror of
https://github.com/flynx/pWiki.git
synced 2026-01-07 10:31:08 +00:00
now dependencies are stored on the root page too...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ff124c0a75
commit
6fe069ba72
@ -536,7 +536,13 @@ object.Constructor('Page', BasePage, {
|
|||||||
// <path>: Set([<path>, ...]),
|
// <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...
|
// NOTE: for this to populate .text must be done at least once...
|
||||||
get depends(){
|
get depends(){
|
||||||
return (this.dependencies ?? {})[this.path] },
|
return (this.dependencies ?? {})[this.path] },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user