1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix: undefined node and wrong method name

This commit is contained in:
Christian Vaas 2023-08-08 19:21:31 +02:00
parent 877aa75e4e
commit 6c597bba5b
No known key found for this signature in database
GPG Key ID: A080F06229F878B1

View File

@ -707,8 +707,8 @@ RED.nodes = (function() {
if (node && node._def.onremove) { if (node && node._def.onremove) {
// Deprecated: never documented but used by some early nodes // Deprecated: never documented but used by some early nodes
console.log("Deprecated API warning: node type ",node.type," has an onremove function - should be oneditremove - please report"); console.log("Deprecated API warning: node type ",node.type," has an onremove function - should be oneditdelete - please report");
node._def.onremove.call(n); node._def.onremove.call(node);
} }
return {links:removedLinks,nodes:removedNodes}; return {links:removedLinks,nodes:removedNodes};
} }