Split up nodes.js into components

This commit is contained in:
Nick O'Leary
2014-05-03 22:26:35 +01:00
parent df9744084c
commit 7eed375111
14 changed files with 820 additions and 556 deletions

View File

@@ -149,7 +149,7 @@ DebugNode.logHandler.on("log",function(msg) {
DebugNode.send(msg);
}
});
RED.nodes.addLogHandler(DebugNode.logHandler);
RED.log.addHandler(DebugNode.logHandler);
RED.httpAdmin.post("/debug/:id/:state", function(req,res) {
var node = RED.nodes.getNode(req.params.id);