mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 02:50:08 +00:00 
			
		
		
		
	bugfixes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									2b58903675
								
							
						
					
					
						commit
						b52351d6fb
					
				| @ -316,7 +316,8 @@ object.Constructor('BasePage', { | |||||||
| 	match: relMatchProxy('match'),  | 	match: relMatchProxy('match'),  | ||||||
| 	resolve: relMatchProxy('resolve'), | 	resolve: relMatchProxy('resolve'), | ||||||
| 	delete: function(path='.'){ | 	delete: function(path='.'){ | ||||||
| 		return this.__delete__() }, | 		this.__delete__()  | ||||||
|  | 		return this }, | ||||||
| 
 | 
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// 	.get(<path>[, <data>])
 | 	// 	.get(<path>[, <data>])
 | ||||||
|  | |||||||
| @ -44,6 +44,7 @@ var pwpath = require('../lib/path') | |||||||
| // 			cache/index???
 | // 			cache/index???
 | ||||||
| // 			...can we avoid this??
 | // 			...can we avoid this??
 | ||||||
| //
 | //
 | ||||||
|  | // XXX might be a good idea to split this into a generic store and a MemStore...
 | ||||||
| // XXX LEADING_SLASH should this be strict about leading '/' in paths???
 | // XXX LEADING_SLASH should this be strict about leading '/' in paths???
 | ||||||
| // 		...this may lead to duplicate paths created -- '/a/b' and 'a/b'
 | // 		...this may lead to duplicate paths created -- '/a/b' and 'a/b'
 | ||||||
| // XXX should we support page symlinking???
 | // XXX should we support page symlinking???
 | ||||||
|  | |||||||
| @ -49,7 +49,8 @@ module.PouchDBStore = { | |||||||
| 				return e.id.slice(that.__key_prefix__.length) }) }, | 				return e.id.slice(that.__key_prefix__.length) }) }, | ||||||
| 	// XXX use an index...
 | 	// XXX use an index...
 | ||||||
| 	__exists__: async function(key){ | 	__exists__: async function(key){ | ||||||
| 		return !! await this.__get__(key) }, | 		return !!(await this.__get__(key))  | ||||||
|  | 			&& key }, | ||||||
| 	__get__: async function(key){ | 	__get__: async function(key){ | ||||||
| 		try{ | 		try{ | ||||||
| 			return await this.data.get(this.__key_prefix__ + key)  | 			return await this.data.get(this.__key_prefix__ + key)  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user