Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-04-24 01:05:01 +03:00
parent a26ba942cf
commit 5b7bbe1faf

View File

@ -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,