mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 16:38:41 +00:00
适配3.x
This commit is contained in:
parent
37b02d5c13
commit
13271d7c79
@ -225,10 +225,7 @@ class CCInspector {
|
||||
const keyVisible1 = Object.keys(node); // Object不走原型链
|
||||
let keyVisible2: string[] = [];
|
||||
for (let nodeKey in node) {// 走原型链
|
||||
// 这里的判断暂时不能去掉,否则会检索不到很多数据
|
||||
if (Object.hasOwnProperty.call(node, nodeKey) || true) {
|
||||
keyVisible2.push(nodeKey)
|
||||
}
|
||||
keyVisible2.push(nodeKey)
|
||||
}
|
||||
let allKeys: string[] = uniq(keyHidden.concat(keyVisible1, keyVisible2)).sort();
|
||||
allKeys = allKeys.filter(key => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user