mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-19 01:21:38 +00:00
minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ee58ea9d2c
commit
caaf19b7b7
@ -171,7 +171,7 @@ function(name, generate, options={}){
|
|||||||
// check dependencies...
|
// check dependencies...
|
||||||
} else if(meth.options.depends){
|
} else if(meth.options.depends){
|
||||||
for(var dep of meth.options.depends){
|
for(var dep of meth.options.depends){
|
||||||
if(this[`__${this[dep].attr}_modified`] > cur){
|
if(this[`__${this[dep].index}_modified`] > cur){
|
||||||
delete this[cache]
|
delete this[cache]
|
||||||
break } } } }
|
break } } } }
|
||||||
// action: other...
|
// action: other...
|
||||||
@ -209,7 +209,7 @@ function(name, generate, options={}){
|
|||||||
// generate...
|
// generate...
|
||||||
: _make.call(this)) ) },
|
: _make.call(this)) ) },
|
||||||
{
|
{
|
||||||
attr: name,
|
index: name,
|
||||||
indexed: true,
|
indexed: true,
|
||||||
options,
|
options,
|
||||||
})) }
|
})) }
|
||||||
@ -265,7 +265,7 @@ object.Mixin('IndexManagerMixin', {
|
|||||||
this.index_attrs
|
this.index_attrs
|
||||||
.map(async function(name){
|
.map(async function(name){
|
||||||
return [
|
return [
|
||||||
that[name].attr,
|
that[name].index,
|
||||||
await that[name](action, ...args),
|
await that[name](action, ...args),
|
||||||
] }))) },
|
] }))) },
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user