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:
commit
312b2f8ddb
@ -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