mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
remove extraneous udp console.log
and two tiny whitespace changes
This commit is contained in:
parent
0411623857
commit
7fc056c8e3
@ -112,7 +112,6 @@
|
|||||||
$("#node-input-port").change(function() {
|
$("#node-input-port").change(function() {
|
||||||
var portnew = $("#node-input-port").val();
|
var portnew = $("#node-input-port").val();
|
||||||
if (portsInUse.hasOwnProperty($("#node-input-port").val())) {
|
if (portsInUse.hasOwnProperty($("#node-input-port").val())) {
|
||||||
console.log($("#node-input-port").val());
|
|
||||||
RED.notify(alreadyused+" "+$("#node-input-port").val(),"warn");
|
RED.notify(alreadyused+" "+$("#node-input-port").val(),"warn");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -83,7 +83,6 @@ module.exports = function(RED) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
node.on("close", function() {
|
node.on("close", function() {
|
||||||
console.log("ID=",node.id);
|
|
||||||
if (udpInputPortsInUse[node.port] === node.id) {
|
if (udpInputPortsInUse[node.port] === node.id) {
|
||||||
delete udpInputPortsInUse[node.port];
|
delete udpInputPortsInUse[node.port];
|
||||||
}
|
}
|
||||||
|
@ -82,11 +82,11 @@ module.exports = {
|
|||||||
// do nothing
|
// do nothing
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
var settings = {
|
var settings = {
|
||||||
available: function() { return false; }
|
available: function() { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var red = {};
|
var red = {};
|
||||||
for (var i in RED) {
|
for (var i in RED) {
|
||||||
if (RED.hasOwnProperty(i) && !/^(init|start|stop)$/.test(i)) {
|
if (RED.hasOwnProperty(i) && !/^(init|start|stop)$/.test(i)) {
|
||||||
@ -115,6 +115,7 @@ module.exports = {
|
|||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
unload: function() {
|
unload: function() {
|
||||||
// TODO: any other state to remove between tests?
|
// TODO: any other state to remove between tests?
|
||||||
redNodes.clearRegistry();
|
redNodes.clearRegistry();
|
||||||
@ -137,7 +138,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
startServer: function(done) {
|
startServer: function(done) {
|
||||||
server = http.createServer(function(req,res){app(req,res);});
|
server = http.createServer(function(req,res) { app(req,res); });
|
||||||
RED.init(server, {
|
RED.init(server, {
|
||||||
SKIP_BUILD_CHECK: true,
|
SKIP_BUILD_CHECK: true,
|
||||||
logging:{console:{level:'off'}}
|
logging:{console:{level:'off'}}
|
||||||
@ -150,9 +151,10 @@ module.exports = {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//TODO consider saving TCP handshake/server reinit on start/stop/start sequences
|
//TODO consider saving TCP handshake/server reinit on start/stop/start sequences
|
||||||
stopServer: function(done) {
|
stopServer: function(done) {
|
||||||
if(server) {
|
if (server) {
|
||||||
try {
|
try {
|
||||||
server.close(done);
|
server.close(done);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
@ -15,5 +15,5 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
describe("locales api", function() {
|
describe("locales api", function() {
|
||||||
it.skip("works",function(){});
|
it.skip("works",function() {});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user