more work on migrating to loadImagesAround(...), seem to have defeated it\!

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-11-20 23:08:26 +04:00
parent 3596d55f96
commit 3be8f6cf36

View File

@ -1417,7 +1417,7 @@ function loadImagesAround(count, gid, ribbon, data){
right = null right = null
} }
*/ */
// XXX this section is WRONG... // XXX might be magic but now this appears to work!!!
// no common sections, do a full reload... // no common sections, do a full reload...
//if(left == null && right == null){ //if(left == null && right == null){
if(left == null || right == null){ if(left == null || right == null){
@ -1432,10 +1432,7 @@ function loadImagesAround(count, gid, ribbon, data){
// calculate the offset... // calculate the offset...
left = o - n left = o - n
// XXX do we need to subtract 1 here??? right = new_ribbon.length - old_ribbon.length - left
right = new_ribbon.length - left
console.log('>>>>', n, '---', left, right, '-- count:', count, 'L:', new_ribbon.length)
extendRibbon(left, right, ribbon_elem) extendRibbon(left, right, ribbon_elem)