From 4f0ce43a0d1c925f8407a2ed14cad147536f628c Mon Sep 17 00:00:00 2001 From: Alex Cole Date: Wed, 15 Apr 2015 13:35:45 -0700 Subject: [PATCH] Fix incorrect loop through array --- lib/lynx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lynx.js b/lib/lynx.js index 786004a..3064551 100644 --- a/lib/lynx.js +++ b/lib/lynx.js @@ -275,7 +275,7 @@ Lynx.prototype.count = function count(stats, delta, sample_rate) { // Batch up all these stats to send // var batch = {}; - for(var i in stats) { + for(var i = 0; i < stats.length; i++) { batch[stats[i]] = delta + '|c'; }