|
|
@ -677,16 +677,11 @@ JSP.prototype.handleEvent = function () { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
let recursiveVal |
|
|
|
let recursiveVal |
|
|
|
const recursiveTargetarr = (arr, targetId) => { |
|
|
|
const recursiveTargetarr = (arr, targetId) => { |
|
|
|
for (var i in arr) { |
|
|
|
for (let i in arr) { |
|
|
|
if (arr[i] === targetId) { |
|
|
|
if (arr[i] === targetId) { |
|
|
|
recursiveVal = targetId |
|
|
|
recursiveVal = targetId |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
let recTargetarrArr = rtTargetarrArr(arr[i]) |
|
|
|
recursiveTargetarr(rtTargetarrArr(arr[i]), targetId) |
|
|
|
if (recTargetarrArr.length) { |
|
|
|
|
|
|
|
recursiveTargetarr(recTargetarrArr, targetId) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return recursiveTargetarr(targetId) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return recursiveVal |
|
|
|
return recursiveVal |
|
|
|