mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 16:38:41 +00:00
修复在2.x检测button回调异常的bug
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
This commit is contained in:
parent
e366799b79
commit
ed146736bd
@ -27,7 +27,7 @@ function getButton(node: any, fillFn: boolean): FunctionInfo[] {
|
|||||||
const ret: FunctionInfo[] = [];
|
const ret: FunctionInfo[] = [];
|
||||||
for (let i = 0; i < arr.length; i++) {
|
for (let i = 0; i < arr.length; i++) {
|
||||||
const item = arr[i];
|
const item = arr[i];
|
||||||
if (!item.target) {
|
if (!item || !item.target) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const compType = cc.js._getClassById(item._componentId);
|
const compType = cc.js._getClassById(item._componentId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user