From 3be8f6cf368fee7feec347377cd9aae01b85e151 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 20 Nov 2013 23:08:26 +0400 Subject: [PATCH] more work on migrating to loadImagesAround(...), seem to have defeated it\! Signed-off-by: Alex A. Naanou --- ui/data.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/data.js b/ui/data.js index 4746f9c3..0a3de0f0 100755 --- a/ui/data.js +++ b/ui/data.js @@ -1417,7 +1417,7 @@ function loadImagesAround(count, gid, ribbon, data){ right = null } */ - // XXX this section is WRONG... + // XXX might be magic but now this appears to work!!! // no common sections, do a full reload... //if(left == null && right == null){ if(left == null || right == null){ @@ -1432,10 +1432,7 @@ function loadImagesAround(count, gid, ribbon, data){ // calculate the offset... left = o - n - // XXX do we need to subtract 1 here??? - right = new_ribbon.length - left - - console.log('>>>>', n, '---', left, right, '-- count:', count, 'L:', new_ribbon.length) + right = new_ribbon.length - old_ribbon.length - left extendRibbon(left, right, ribbon_elem)