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:
parent
877aa75e4e
commit
6c597bba5b
@ -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};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user