'
+ +''
+ +'\n',
+ },
}
data.__proto__ = BaseData
@@ -912,6 +951,11 @@ var Wiki = {
.replace(/\$NOW|\$\{NOW\}/g, ''+Date.now())
},
resolvePathActions: function(){
+ // XXX this can happen when we are getting '.../*' of an empty item...
+ if(this.path == null){
+ return this
+ }
+
var p = path2lst(this.path).pop()
if(p in PathActions){
@@ -1025,6 +1069,8 @@ var Wiki = {
// NOTE: changing path will update all the links to the moving page.
// NOTE: if a link can't be updated without a conflit then it is left
// unchanged, and a redirect page will be created.
+ //
+ // XXX this can be null if we are getting '.../*' of an empty item...
get path(){
return (this.__order || this.resolveStarPath(this.location))[this.at()] },
// XXX should link updating be part of this???