mirror of
https://github.com/flynx/pWiki.git
synced 2025-11-01 19:40:10 +00:00
minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b87382c71b
commit
e7812df701
@ -140,16 +140,11 @@ module.store = {
|
||||
exists: function(path){
|
||||
return module.path.normalize(path, 'string') in this },
|
||||
|
||||
// NOTE: a path is any attribute that contains '/'...
|
||||
paths: function(){
|
||||
return Object.keys(this)
|
||||
.filter(function(p){
|
||||
// XXX LEADING_SLASH
|
||||
//return p[0] == '/' }) },
|
||||
return p.includes('/') }) },
|
||||
return Object.keys(this) },
|
||||
pages: function(){
|
||||
var that = this
|
||||
this.paths()
|
||||
return this.paths()
|
||||
.map(function(p){
|
||||
return [p, that[p]] }) },
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user