Commit 4e368f7d by Valera Rozuvan Committed by Alexander Kryklia

Fixed bug where config.plot was causing error if not present.

parent ac23c7c6
......@@ -11,6 +11,11 @@ define('Graph', ['logme'], function (logme) {
logme(config);
// We need plot configuration settings. Without them we can't continue.
if ($.isPlainObject(config.plot) === false) {
return;
}
// We must have a graph container DIV element available in order to
// proceed.
plotDiv = $('#' + gstId + '_plot');
......
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