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

This commit is contained in:
Valera Rozuvan
2012-12-19 13:14:46 +02:00
committed by Alexander Kryklia
parent ac23c7c630
commit 4e368f7d74

View File

@@ -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');