From 9e79b6a0b1947aa2bd579477654ef79cef7e83ad Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 25 Apr 2019 19:42:12 +0300 Subject: [PATCH] minor tweaks and notes... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse2.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui (gen4)/lib/widget/browse2.js b/ui (gen4)/lib/widget/browse2.js index e3c42665..c54b628e 100755 --- a/ui (gen4)/lib/widget/browse2.js +++ b/ui (gen4)/lib/widget/browse2.js @@ -666,7 +666,7 @@ var BaseBrowserPrototype = { // normalize list... list = list === true ? sublist - :(!iterateCollapsed && elem.collapsed) ? + : (!iterateCollapsed && elem.collapsed) ? [] : (list || sublist) // adjust index... @@ -676,7 +676,7 @@ var BaseBrowserPrototype = { // request manual iteration... list === false ? [] - :list instanceof Array ? + : list instanceof Array ? walk(i, p, list) // user-defined recursion... : recursion instanceof Function ? @@ -720,6 +720,8 @@ var BaseBrowserPrototype = { : []) // append the actual element... .concat( + // NOTE: func MUST return an array... + // XXX can we make this more lenient??? func.call(that, // NOTE: for inline elements we do not need to // count the header...