From 5b7bbe1faf362426bbd6225f77b85f29ce673a14 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 24 Apr 2019 01:05:01 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse2.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/lib/widget/browse2.js b/ui (gen4)/lib/widget/browse2.js index 25da3b7e..f02c51ed 100755 --- a/ui (gen4)/lib/widget/browse2.js +++ b/ui (gen4)/lib/widget/browse2.js @@ -1390,13 +1390,16 @@ var BaseBrowserPrototype = { recursion.call(that, func, i, p, list, opts || options) : list[recursion || 'walk'](func, i, p, opts || options)) .run(function(){ - i += this.length-1 })} + console.log('---', i, this) + // XXX BUG: here we add up the sum of total level lengths... + // ...i.e. for [a, b, [c, d]] this will be 2 + 4 + // and not 2 + 2... + i += this.length })} return ( // inline browser or array... (elem instanceof Array || elem instanceof Browser) ? - // XXX need to decrement i here... func.call(that, i, p = path, null, nested,