1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update removeModule to reflect getNodeModuleInfo changes

This commit is contained in:
Anna Thomas 2014-12-05 16:45:32 +00:00
parent 851048077c
commit 1a5751ff1d

View File

@ -83,8 +83,8 @@ function removeModule(module) {
if (!info) { if (!info) {
throw new Error("Unrecognised module: "+module); throw new Error("Unrecognised module: "+module);
} else { } else {
for (var i=0;i<info.nodes.length;i++) { for (var i=0;i<info.length;i++) {
checkTypeInUse(module+"/"+info.nodes[i]); checkTypeInUse(module+"/"+info[i]);
} }
return registry.removeModule(module); return registry.removeModule(module);
} }