From 34d35923d06f375a891f4083e46947476de52d4f Mon Sep 17 00:00:00 2001 From: osamasayegh Date: Sat, 14 Apr 2018 16:39:56 +0300 Subject: [PATCH] Use underscore's `assign` for IE 11 compatibility --- .../javascripts/discourse/helpers/theme-setting-injector.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/helpers/theme-setting-injector.es6 b/app/assets/javascripts/discourse/helpers/theme-setting-injector.es6 index 760bbbab1c7..b0c774c84ab 100644 --- a/app/assets/javascripts/discourse/helpers/theme-setting-injector.es6 +++ b/app/assets/javascripts/discourse/helpers/theme-setting-injector.es6 @@ -22,9 +22,9 @@ function inject(context, key, value) { function injectPlainObject(context, key, value) { if (!context.themeSettings) { - Object.assign(context, { themeSettings: {} }); + _.assign(context, { themeSettings: {} }); } - Object.assign(context.themeSettings, { [key]: value }); + _.assign(context.themeSettings, { [key]: value }); } registerHelper('theme-setting-injector', function(arr, hash) {