mirror of https://github.com/node-red/node-red.git
Update comments
parent
7e4354aa56
commit
bc2153bcdf
|
|
@ -1636,8 +1636,11 @@ RED.palette.editor = (function() {
|
|||
console.warn(`Error while calling 'onremove' for plugin '${id}': `, error);
|
||||
}
|
||||
} else if (typeof plugin.onadd === 'function') {
|
||||
// if there's no 'onadd', there shouldn't be any left-overs
|
||||
// We assume that the plugin adds something to the editor but is not able to remove it
|
||||
// Notify the user to refresh the editor to remove that plugin
|
||||
found_onremove = false;
|
||||
} else {
|
||||
// If there's no 'onadd', there shouldn't be any left-overs
|
||||
}
|
||||
} else {
|
||||
// Either the plugin exists only in the runtime or it is a known limitation
|
||||
|
|
|
|||
Loading…
Reference in New Issue