From: Iskren Chernev Date: Sun, 22 Mar 2015 23:10:49 +0000 (-0700) Subject: Fix lazy loading on node.js X-Git-Tag: 2.10.2~15^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5413e6baf4768cf78c817296349e485b76bccb4;p=thirdparty%2Fmoment.git Fix lazy loading on node.js --- diff --git a/src/lib/locale/locales.js b/src/lib/locale/locales.js index f213ea4d0..0e58dedfe 100644 --- a/src/lib/locale/locales.js +++ b/src/lib/locale/locales.js @@ -47,7 +47,7 @@ function loadLocale(name) { require('./locale/' + name); // because defineLocale currently also sets the global locale, we // want to undo that for lazy loaded locales - moment.locale(oldLocale); + getSetGlobalLocale(oldLocale); } catch (e) { } } return locales[name];