minor tweaks and notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-04-25 19:42:12 +03:00
parent e5556fb34b
commit 9e79b6a0b1

View File

@ -666,7 +666,7 @@ var BaseBrowserPrototype = {
// normalize list... // normalize list...
list = list === true ? list = list === true ?
sublist sublist
:(!iterateCollapsed && elem.collapsed) ? : (!iterateCollapsed && elem.collapsed) ?
[] []
: (list || sublist) : (list || sublist)
// adjust index... // adjust index...
@ -676,7 +676,7 @@ var BaseBrowserPrototype = {
// request manual iteration... // request manual iteration...
list === false ? list === false ?
[] []
:list instanceof Array ? : list instanceof Array ?
walk(i, p, list) walk(i, p, list)
// user-defined recursion... // user-defined recursion...
: recursion instanceof Function ? : recursion instanceof Function ?
@ -720,6 +720,8 @@ var BaseBrowserPrototype = {
: []) : [])
// append the actual element... // append the actual element...
.concat( .concat(
// NOTE: func MUST return an array...
// XXX can we make this more lenient???
func.call(that, func.call(that,
// NOTE: for inline elements we do not need to // NOTE: for inline elements we do not need to
// count the header... // count the header...