Browse Source

Merge pull request #89 from millionfor/branch-1.0.0

Branch 1.0.0
pull/2/head
millionfor 6 years ago committed by GitHub
parent
commit
f1e6e6978d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      escheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js

9
escheduler-ui/src/js/conf/home/pages/dag/_source/plugIn/jsPlumbHandle.js

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

Loading…
Cancel
Save