Skip to content

Commit

Permalink
Merge pull request jagenjo#348 from atlasan/contrib
Browse files Browse the repository at this point in the history
fix undefined def_options
  • Loading branch information
jagenjo authored Mar 20, 2023
2 parents 412e833 + 31ec956 commit de997ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -11177,7 +11177,7 @@ LGraphNode.prototype.executeAction = function(action)
LGraphCanvas.search_limit = -1;
LGraphCanvas.prototype.showSearchBox = function(event, options) {
// proposed defaults
def_options = { slot_from: null
var def_options = { slot_from: null
,node_from: null
,node_to: null
,do_type_filter: LiteGraph.search_filter_enabled // TODO check for registered_slot_[in/out]_types not empty // this will be checked for functionality enabled : filter on slot type, in and out
Expand Down Expand Up @@ -11875,7 +11875,7 @@ LGraphNode.prototype.executeAction = function(action)

// TODO refactor, theer are different dialog, some uses createDialog, some dont
LGraphCanvas.prototype.createDialog = function(html, options) {
def_options = { checkForInput: false, closeOnLeave: true, closeOnLeave_checkModified: true };
var def_options = { checkForInput: false, closeOnLeave: true, closeOnLeave_checkModified: true };
options = Object.assign(def_options, options || {});

var dialog = document.createElement("div");
Expand Down

0 comments on commit de997ac

Please sign in to comment.