From: Hiroyuki Wada Date: Wed, 13 Apr 2016 16:27:00 +0000 (+0900) Subject: Fix #1756 Resolved thread-safe issue on server side. X-Git-Tag: 2.13.0~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb337b9df0a844c4cfdfa5f7e08e58bd91b8874f;p=thirdparty%2Fmoment.git Fix #1756 Resolved thread-safe issue on server side. --- diff --git a/src/lib/format/format.js b/src/lib/format/format.js index 43cfef00a..33486f1d5 100644 --- a/src/lib/format/format.js +++ b/src/lib/format/format.js @@ -53,7 +53,7 @@ function makeFormatFunction(format) { } return function (mom) { - var output = ''; + var output = '', i; for (i = 0; i < length; i++) { output += array[i] instanceof Function ? array[i].call(mom, format) : array[i]; }