mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Use underscore's assign
for IE 11 compatibility
This commit is contained in:
parent
4ebf46dc08
commit
34d35923d0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user