mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Add oneditdelete handler for config nodes
Already had the undocumented ondelete handler. Adding this to be consistent with the other oneditXYZ handlers.
This commit is contained in:
parent
d6ca421d59
commit
ad6254c0b8
@ -553,6 +553,9 @@ RED.editor = (function() {
|
||||
if (configTypeDef.ondelete) {
|
||||
configTypeDef.ondelete.call(RED.nodes.node(configId));
|
||||
}
|
||||
if (configTypeDef.oneditdelete) {
|
||||
configTypeDef.oneditdelete.call(RED.nodes.node(configId));
|
||||
}
|
||||
RED.nodes.remove(configId);
|
||||
for (var i=0;i<configNode.users.length;i++) {
|
||||
var user = configNode.users[i];
|
||||
|
Loading…
Reference in New Issue
Block a user