Skip to content

Commit

Permalink
Fix moment#3626 further refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyers committed Nov 14, 2017
1 parent 13c041f commit 627919d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lib/locale/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,10 @@ export function updateLocale(name, config) {
if (config != null) {
var locale, tmpLocale, parentConfig = baseConfig;
// MERGE
tmpLocale = loadLocale(name);
tmpLocale = locales[name] || loadLocale(name);
if (tmpLocale != null) {
parentConfig = tmpLocale._config;
}
else {
locale = loadLocale(name);
if (locale != null) {
parentConfig = locale._config;
}
}
config = mergeConfigs(parentConfig, config);
locale = new Locale(config);
locale.parentLocale = locales[name];
Expand Down

0 comments on commit 627919d

Please sign in to comment.