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

Merge pull request #4270 from AuspeXeu/master

fix: undefined node and wrong method name
This commit is contained in:
Nick O'Leary 2023-08-14 11:08:04 +01:00 committed by GitHub
commit 312b2f8ddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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};
} }