Commit ebb7f577 authored by yann300's avatar yann300

fix filter

parent 04016be5
......@@ -616,6 +616,7 @@ function findDeep (object, fn, found = { break: false, value: undefined }) {
for (var i in object) {
if (found.break) break
var el = object[i]
if (el && el.innerText !== undefined && el.innerText !== null) el = el.innerText
if (!fn(el, i, object)) findDeep(el, fn, found)
else if (found.break = true) return found.value = el // eslint-disable-line
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment