]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix #1756 Resolved thread-safe issue on server side.
authorHiroyuki Wada <wadahiro@gmail.com>
Wed, 13 Apr 2016 16:27:00 +0000 (01:27 +0900)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 16 Apr 2016 07:43:12 +0000 (00:43 -0700)
src/lib/format/format.js

index 43cfef00a565dcb04ab28682436ce919e965b80b..33486f1d566d6712869e84fc4bc7a3de16d97b1a 100644 (file)
@@ -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];
         }