From ad6254c0b8409c54550309993a5c08cb5fedb419 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 13 Feb 2015 11:20:08 +0000 Subject: [PATCH] Add oneditdelete handler for config nodes Already had the undocumented ondelete handler. Adding this to be consistent with the other oneditXYZ handlers. --- public/red/ui/editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 9dc12aad5..313a9394e 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -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