(el)
| 1018 | }; |
| 1019 | |
| 1020 | let _getDirectNodeText = function (el) { |
| 1021 | let directText = el.children('.key,.string,.number,.bool,.null').map(function () { |
| 1022 | return $(this).text(); |
| 1023 | }).get().join(' '); |
| 1024 | |
| 1025 | if (!directText) { |
| 1026 | directText = el.clone().children('.kv-list,.boxOpt').remove().end().text(); |
| 1027 | } |
| 1028 | |
| 1029 | return String(directText || '').replace(/\s+/g, ' ').trim(); |
| 1030 | }; |
| 1031 | |
| 1032 | let _getJsonNodeType = function (el, text) { |
| 1033 | if (!el || !el.length) { |
no test coverage detected