projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
null should be converted into {} in deepcopy - fixes turning on/off highlightSeriesOpts
[dygraphs.git]
/
dygraph-utils.js
diff --git
a/dygraph-utils.js
b/dygraph-utils.js
index
f5440c7
..
63411a5
100644
(file)
--- a/
dygraph-utils.js
+++ b/
dygraph-utils.js
@@
-598,7
+598,7
@@
Dygraph.updateDeep = function (self, o) {
// DOM objects are shallowly-copied.
self[k] = o[k];
} else if (typeof(o[k]) == 'object') {
- if (typeof(self[k]) != 'object') {
+ if (typeof(self[k]) != 'object'
|| self[k] === null
) {
self[k] = {};
}
Dygraph.updateDeep(self[k], o[k]);