mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:23:17 -05:00
Use underscore's assign for IE 11 compatibility
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user