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
1 changed files with 3 additions and 0 deletions

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