2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-09-24 16:40:55 -06:00

Fixed some clone parameters

Signed-off-by: Dmitry Mazurov <dimabzz@gmail.com>
This commit is contained in:
Dmitry Mazurov 2020-04-01 19:41:56 +03:00
parent 0602fcbda8
commit 281c9f4468

View File

@ -1537,7 +1537,10 @@ function EasyMDE(options) {
options.parent = this; options.parent = this;
// Merging localizations // Merging localizations
options = extend(localization, options, options.localization || {}); // First, we clone the old parameters into new
var copyOptions = extend({}, localization, options);
// Then merge with the new parameters
options = extend({}, copyOptions, options.localization || {});
// Check if Font Awesome needs to be auto downloaded // Check if Font Awesome needs to be auto downloaded
var autoDownloadFA = true; var autoDownloadFA = true;