tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-08-04 23:58:13 +03:00
parent aed572cb33
commit 9e49e4f9b3

View File

@ -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()