Commit d5181f1d authored by Masayuki Tanaka's avatar Masayuki Tanaka

Modify config logic

parent 97beb21a
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
// Check next key's value // Check next key's value
isLast = (i === keys.length - 1); isLast = (i === keys.length - 1);
nextTarget = target[keys[i]]; nextTarget = target[keys[i]];
if ((!isLast && typeof nextTarget !== 'object') || (isLast && typeof defaultValue !== 'object' && typeof nextTarget === 'object' && nextTarget !== null)) { if (!isLast && typeof nextTarget !== 'object') {
return defaultValue; return defaultValue;
} }
target = nextTarget; target = nextTarget;
...@@ -2048,7 +2048,7 @@ ...@@ -2048,7 +2048,7 @@
}; };
} }
function getBarW(axis, barTargetsNum) { function getBarW(axis, barTargetsNum) {
return __bar_width ? __bar_width : barTargetsNum ? (axis.tickOffset() * 2 * __bar_width_ratio) / barTargetsNum : 0; return typeof __bar_width === 'number' ? __bar_width : barTargetsNum ? (axis.tickOffset() * 2 * __bar_width_ratio) / barTargetsNum : 0;
} }
//-- Type --// //-- Type --//
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment