From 414e7dec14ef36389b9c622ba96a575673444e37 Mon Sep 17 00:00:00 2001 From: Nick Campbell Date: Thu, 1 Nov 2012 15:55:08 -0400 Subject: [PATCH] fmt hoisted to global. `fmt` was being hoisted as a global variable. Signed-off-by: Nick Campbell --- jquery.flot.time.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.flot.time.js b/jquery.flot.time.js index dfe7244..cfe5245 100644 --- a/jquery.flot.time.js +++ b/jquery.flot.time.js @@ -272,6 +272,7 @@ for details. var suffix = (opts.twelveHourClock) ? " %p" : ""; var hourCode = (opts.twelveHourClock) ? "%I" : "%H"; + var fmt; if (t < timeUnitSize.minute) fmt = hourCode + ":%M:%S" + suffix; else if (t < timeUnitSize.day) {