add function name (listeners readability/clarity)

10.3.x-maintenance
cTn 2014-01-27 01:59:40 +01:00
parent d2a7b4559b
commit c51e6eb2fb
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ var serial = {
self.bytes_received = 0; self.bytes_received = 0;
self.bytes_sent = 0; self.bytes_sent = 0;
self.onReceive.addListener(function(info) { self.onReceive.addListener(function log_bytes_received(info) {
self.bytes_received += info.data.byteLength; self.bytes_received += info.data.byteLength;
}); });