mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-30 18:40:08 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d50c2b675d
commit
a44fe59475
@ -1038,10 +1038,12 @@ object.Constructor('BasePage', {
|
|||||||
__delete__: function(){ return this },
|
__delete__: function(){ return this },
|
||||||
// NOTE: we need to proxy .clone(..) back to parent so as to
|
// NOTE: we need to proxy .clone(..) back to parent so as to
|
||||||
// avoid overloading .data in the children too...
|
// avoid overloading .data in the children too...
|
||||||
|
// NOTE: we are also keeping all first level queries resolving
|
||||||
|
// to current path also virtual...
|
||||||
clone: function(...args){
|
clone: function(...args){
|
||||||
var res = that.clone(...args)
|
var res = that.clone(...args)
|
||||||
return res.path == this.path ?
|
return res.path == this.path ?
|
||||||
that.virtual(data)
|
that.virtual(this.data)
|
||||||
: res },
|
: res },
|
||||||
data: Object.assign(
|
data: Object.assign(
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user