mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Fix defineTheme startHats (#3842)
typeof null === "object", go figure..
This commit is contained in:
@@ -45,7 +45,7 @@ Blockly.utils.object.mixin = function(target, source) {
|
||||
*/
|
||||
Blockly.utils.object.deepMerge = function(target, source) {
|
||||
for (var x in source) {
|
||||
if (typeof source[x] === 'object') {
|
||||
if (source[x] != null && typeof source[x] === 'object') {
|
||||
target[x] = Blockly.utils.object.deepMerge(
|
||||
target[x] || Object.create(null), source[x]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user