Skip to content

Commit

Permalink
jquery.ztree.core.js line:806 x = false冗余? zTree#510
Browse files Browse the repository at this point in the history
去掉冗余代码x=false
  • Loading branch information
wwx412775 committed Sep 7, 2022
1 parent dd003eb commit f8eaabb
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 f8eaabb

Please sign in to comment.