From f8eaabb38f08e59d3f5e11e83e1f228db544e0ff Mon Sep 17 00:00:00 2001 From: wwx412775 <2788341416@qq.com> Date: Wed, 7 Sep 2022 22:02:01 +0800 Subject: [PATCH] =?UTF-8?q?jquery.ztree.core.js=20line:806=20x=20=3D=20fal?= =?UTF-8?q?se=E5=86=97=E4=BD=99=EF=BC=9F=20#510=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81x=3Dfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/jquery.ztree.core.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/jquery.ztree.core.js b/js/jquery.ztree.core.js index 9226f19..0404d7a 100644 --- a/js/jquery.ztree.core.js +++ b/js/jquery.ztree.core.js @@ -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; } }