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...
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...