From 46d0045d0267aa359e3de23f192347fddb5c3238 Mon Sep 17 00:00:00 2001 From: Valera Rozuvan Date: Tue, 11 Dec 2012 12:34:58 +0200 Subject: [PATCH] GST documentation and code refactoring. --- .../xmodule/xmodule/js/src/graphical_slider_tool/graph.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js index c0c8addf80..215feb214d 100644 --- a/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js +++ b/common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js @@ -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 = [];