use of camelCasing: node_selector => nodeSelector

This commit is contained in:
Ralph Wetzel 2023-11-21 20:48:52 +01:00
parent ea483218ea
commit febc769df5
2 changed files with 6 additions and 6 deletions

View File

@ -505,10 +505,10 @@ RED.utils = (function() {
let n = RED.nodes.node(obj) ?? RED.nodes.workspace(obj); let n = RED.nodes.node(obj) ?? RED.nodes.workspace(obj);
if (n) { if (n) {
if (options.node_selector && "function" == typeof options.node_selector) { if (options.nodeSelector && "function" == typeof options.nodeSelector) {
e.css('cursor', 'pointer').on("click", function(evt) { e.css('cursor', 'pointer').on("click", function(evt) {
evt.preventDefault(); evt.preventDefault();
options.node_selector(n.id); options.nodeSelector(n.id);
}) })
} }
} }
@ -619,7 +619,7 @@ RED.utils = (function() {
exposeApi: exposeApi, exposeApi: exposeApi,
// tools: tools // Do not pass tools down as we // tools: tools // Do not pass tools down as we
// keep them attached to the top-level header // keep them attached to the top-level header
node_selector: options.node_selector, nodeSelector: options.nodeSelector,
} }
).appendTo(row); ).appendTo(row);
} }
@ -650,7 +650,7 @@ RED.utils = (function() {
exposeApi: exposeApi, exposeApi: exposeApi,
// tools: tools // Do not pass tools down as we // tools: tools // Do not pass tools down as we
// keep them attached to the top-level header // keep them attached to the top-level header
node_selector: options.node_selector, nodeSelector: options.nodeSelector,
} }
).appendTo(row); ).appendTo(row);
} }
@ -707,7 +707,7 @@ RED.utils = (function() {
exposeApi: exposeApi, exposeApi: exposeApi,
// tools: tools // Do not pass tools down as we // tools: tools // Do not pass tools down as we
// keep them attached to the top-level header // keep them attached to the top-level header
node_selector: options.node_selector, nodeSelector: options.nodeSelector,
} }
).appendTo(row); ).appendTo(row);
} }

View File

@ -643,7 +643,7 @@ RED.debug = (function() {
path: path, path: path,
sourceId: sourceNode&&sourceNode.id, sourceId: sourceNode&&sourceNode.id,
rootPath: path, rootPath: path,
node_selector: config.messageSourceClick, nodeSelector: config.messageSourceClick,
}); });
// Do this in a separate step so the element functions aren't stripped // Do this in a separate step so the element functions aren't stripped
debugMessage.appendTo(el); debugMessage.appendTo(el);