From 9e49e4f9b3e91870f2b60092ca746b2577e2763a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 4 Aug 2016 23:58:13 +0300 Subject: [PATCH] tweaking... Signed-off-by: Alex A. Naanou --- wiki.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wiki.js b/wiki.js index e52c853..9e98a6c 100755 --- a/wiki.js +++ b/wiki.js @@ -931,6 +931,7 @@ var Wiki = { // update links to this page... this.pages(function(page){ + //this.get('**').map(function(page){ // skip the old page... if(page.location == l){ return @@ -1264,6 +1265,10 @@ var Wiki = { // NOTE: the next method is used iff the previous returns 0, // i.e. the items are equal. // + // NOTE: the sort is local to the returned object. + // NOTE: the sorted object may loose sync form the actual wiki as the + // list of siblings is cached. + // ...the resulting object is not to be stored for long. sort: function(){ var that = this var res = this.clone()