mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-11-03 20:40:10 +00:00 
			
		
		
		
	docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									a44fe59475
								
							
						
					
					
						commit
						1a939e17f7
					
				
							
								
								
									
										18
									
								
								pwiki2.js
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								pwiki2.js
									
									
									
									
									
								
							@ -499,7 +499,6 @@ module.BaseStore = {
 | 
				
			|||||||
			next: this,
 | 
								next: this,
 | 
				
			||||||
			data: {}
 | 
								data: {}
 | 
				
			||||||
		} },
 | 
							} },
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -973,7 +972,6 @@ object.Constructor('BasePage', {
 | 
				
			|||||||
	//
 | 
						//
 | 
				
			||||||
	// NOTE: <clone-history> by default is false unless fully cloning
 | 
						// NOTE: <clone-history> by default is false unless fully cloning
 | 
				
			||||||
	//
 | 
						//
 | 
				
			||||||
	// XXX revise...
 | 
					 | 
				
			||||||
	// XXX HISTORY should we clear history by default...
 | 
						// XXX HISTORY should we clear history by default...
 | 
				
			||||||
	clone: function(data={}, history=false){
 | 
						clone: function(data={}, history=false){
 | 
				
			||||||
		var [data, ...args] = [...arguments]
 | 
							var [data, ...args] = [...arguments]
 | 
				
			||||||
@ -1010,6 +1008,12 @@ object.Constructor('BasePage', {
 | 
				
			|||||||
			//*/
 | 
								//*/
 | 
				
			||||||
			data) },
 | 
								data) },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Create a read-only page...
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// NOTE: all pages that are created via a read-only page are also 
 | 
				
			||||||
 | 
						// 		read-only.
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// XXX test .ro().virtual() combinations...
 | 
				
			||||||
	// XXX EXPERIMENTAL...
 | 
						// XXX EXPERIMENTAL...
 | 
				
			||||||
	ro: function(data={}){
 | 
						ro: function(data={}){
 | 
				
			||||||
		return Object.assign({
 | 
							return Object.assign({
 | 
				
			||||||
@ -1018,6 +1022,16 @@ object.Constructor('BasePage', {
 | 
				
			|||||||
			__delete__: function(){ return this },
 | 
								__delete__: function(){ return this },
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		data) },
 | 
							data) },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Create a virtual page at current path...
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// Virtual pages do not affect store data in any way but behave like 
 | 
				
			||||||
 | 
						// normal pages.
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// NOTE: .get(..) / .clone(..) will return normal non-virtual pages
 | 
				
			||||||
 | 
						// 		unless the target path is the same as the virtual page .path...
 | 
				
			||||||
 | 
						//
 | 
				
			||||||
 | 
						// XXX test .ro().virtual() combinations...
 | 
				
			||||||
	// XXX should we be able to change path/location here???
 | 
						// XXX should we be able to change path/location here???
 | 
				
			||||||
	// XXX EXPERIMENTAL...
 | 
						// XXX EXPERIMENTAL...
 | 
				
			||||||
	virtual: function(data={}){
 | 
						virtual: function(data={}){
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user