GST documentation and code refactoring.

This commit is contained in:
Valera Rozuvan
2012-12-11 12:34:58 +02:00
committed by Alexander Kryklia
parent f2fd649a16
commit 46d0045d02

View File

@@ -2,15 +2,13 @@
// define() functions from Require JS available inside the anonymous function.
(function (requirejs, require, define) {
define('Graph', ['logme'], function (logme) {
define('Graph', [], function () {
return Graph;
function Graph(gstId, config, state) {
var plotDiv, dataSeries, functions;
logme(config);
plotDiv = $('#' + gstId + '_plot');
if (plotDiv.length === 0) {
@@ -140,8 +138,6 @@ define('Graph', ['logme'], function (logme) {
newFunctionObject['label'] = label;
}
logme(newFunctionObject);
functions.push(newFunctionObject);
}
}
@@ -160,7 +156,6 @@ define('Graph', ['logme'], function (logme) {
for (c0 = 0; c0 < functions.length; c0 += 1) {
functionObj = functions[c0];
logme('Functions obj:', functionObj);
seriesObj = {};
dataPoints = [];