From 30e5954090559e9fefaa73ca39c07dcef5bfa09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Wed, 25 May 2016 20:44:53 +0300 Subject: [PATCH] Fix variable which was not defined. Fixes #90. --- lib/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index ec03745..ae75ac9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,5 @@ -// Dependencies +"use strict"; + var Ul = require("ul") , Abs = require("abs") , ReadJson = require("r-json") @@ -498,7 +499,7 @@ GitStats.prototype.ansiCalendar = function (options, callback) { ; self.iterateDays(options, function (cDay) { - cDayObj = graph[cDay]; + var cDayObj = graph[cDay]; if (!cDayObj) { return; } cal.push([cDay, cDayObj.c]); });