1
0
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:
Nick O'Leary 2015-02-13 11:20:08 +00:00
parent d6ca421d59
commit ad6254c0b8

View File

@ -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];