From 35f2ebc2aa79c332e44856cd50e68c59d9d0f3a1 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 26 Nov 2016 15:33:10 +0100 Subject: [PATCH] Fixed Global Default Config Being Modified --- CHANGELOG.md | 2 +- js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6777c9ab..c5b5d31e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,7 +42,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Solve an issue where module margins would appear when the first module of a section was hidden. - Solved visual display errors on chrome, if all modules in one of the right sections are hidden. -- Module default config values are no longer modified when setting config values. +- Global and Module default config values are no longer modified when setting config values. - Hide a region if all modules in a region are hidden. Prevention unwanted margins. - Replaced `electron-prebuilt` package with `electron` in order to fix issues that would happen after 2017. - Documentation of alert module diff --git a/js/main.js b/js/main.js index 4de028ee..325a7efe 100644 --- a/js/main.js +++ b/js/main.js @@ -295,7 +295,7 @@ var MM = (function() { return; } - config = Object.assign(defaults, config); + config = Object.assign({}, defaults, config); }; /* setSelectionMethodsForModules()