summaryrefslogtreecommitdiff
path: root/src/lib/rrdFlot.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rrdFlot.js')
-rw-r--r--src/lib/rrdFlot.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js
index 8621234..668f112 100644
--- a/src/lib/rrdFlot.js
+++ b/src/lib/rrdFlot.js
@@ -640,14 +640,14 @@ function resetWindow() {
function populateGraphOptions(me, other) {
for (e in other) {
if (me[e]!=undefined) {
- if (typeof(other[e])=="object") {
+ if (Object.prototype.toString.call(other[e])=="[object Object]") {
me[e]=populateGraphOptions(me[e],other[e]);
} else {
me[e]=other[e];
}
} else {
/// create a new one
- if (typeof(other[e])=="object") {
+ if (Object.prototype.toString.call(other[e])=="[object Object]") {
// This will do a deep copy
me[e]=populateGraphOptions({},other[e]);
} else {