Skip to content

Commit 56e6aca

Browse files
committed
Fix - use res value in checked item handler
1 parent c39b55d commit 56e6aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/JSRoot.menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ JSROOT.define(['d3', 'jquery', 'painter', 'jquery-ui'], (d3, $, jsrp) => {
105105
let handler = func;
106106
if (typeof arg == 'function') {
107107
func = arg;
108-
handler = res => func(arg=="1");
108+
handler = res => func(res=="1");
109109
arg = flag ? "0" : "1";
110110
}
111111
return this.add((flag ? "chk:" : "unk:") + name, arg, handler);

0 commit comments

Comments
 (0)