Fixed bug where config.plot was causing error if not present.
This commit is contained in:
committed by
Alexander Kryklia
parent
ac23c7c630
commit
4e368f7d74
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user