Skip to content

Commit

Permalink
Merge pull request #514 from wwx412775/master
Browse files Browse the repository at this point in the history
jquery.ztree.core.js line:806 x = false冗余? #510
  • Loading branch information
zTree authored Sep 8, 2022
2 parents dd003eb + f8eaabb commit 0f6b38c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/jquery.ztree.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,15 +803,13 @@
var setting = data.getSetting(e.data.treeId);
if (!tools.uCanDo(setting, e)) return true;
var results = event.doProxy(e),
r = true, x = false;
r = true;
for (var i = 0, l = results.length; i < l; i++) {
var proxyResult = results[i];
if (proxyResult.nodeEventCallback) {
x = true;
r = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
}
if (proxyResult.treeEventCallback) {
x = true;
r = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
}
}
Expand Down

0 comments on commit 0f6b38c

Please sign in to comment.