mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-27 05:01:57 +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){
|
exists: function(path){
|
||||||
return module.path.normalize(path, 'string') in this },
|
return module.path.normalize(path, 'string') in this },
|
||||||
|
|
||||||
// NOTE: a path is any attribute that contains '/'...
|
|
||||||
paths: function(){
|
paths: function(){
|
||||||
return Object.keys(this)
|
return Object.keys(this) },
|
||||||
.filter(function(p){
|
|
||||||
// XXX LEADING_SLASH
|
|
||||||
//return p[0] == '/' }) },
|
|
||||||
return p.includes('/') }) },
|
|
||||||
pages: function(){
|
pages: function(){
|
||||||
var that = this
|
var that = this
|
||||||
this.paths()
|
return this.paths()
|
||||||
.map(function(p){
|
.map(function(p){
|
||||||
return [p, that[p]] }) },
|
return [p, that[p]] }) },
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user