Use underscore's `assign` for IE 11 compatibility

This commit is contained in:
osamasayegh 2018-04-14 16:39:56 +03:00 committed by Sam
parent 4ebf46dc08
commit 34d35923d0
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ function inject(context, key, value) {
function injectPlainObject(context, key, value) { function injectPlainObject(context, key, value) {
if (!context.themeSettings) { 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) { registerHelper('theme-setting-injector', function(arr, hash) {