From e05c67da6959b2fe8ddff17f5a487681faed795f Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Sun, 28 Apr 2019 18:34:57 +0800 Subject: [PATCH] fix: not defined variable with `onSearchBox` fix #71 --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index adfcdb5b0..c5a63ee25 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -7995,7 +7995,7 @@ LGraphNode.prototype.executeAction = function(action) if (!str) return; if (that.onSearchBox) { - var list = that.onSearchBox(help, str, graphcanvas); + var list = that.onSearchBox(helper, str, graphcanvas); if (list) for (var i = 0; i < list.length; ++i) addResult(list[i]); } else {