mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-12 05:01:03 +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[] = [];
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
const item = arr[i];
|
||||
if (!item.target) {
|
||||
if (!item || !item.target) {
|
||||
continue;
|
||||
}
|
||||
const compType = cc.js._getClassById(item._componentId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user