Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Evans committed Aug 17, 2011
1 parent 8303b86 commit c1429e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions railroad/static/js/functions.js
Expand Up @@ -1084,6 +1084,7 @@ function getServiceObjs(ajaxData) {
}

function addMaxToData(data) {
var first = true;
var max = null;
if (data.data) {
for (var i=0; i < data.data.length; i++) {
Expand All @@ -1109,8 +1110,6 @@ function addMaxToData(data) {
function formatGraph(element, data) {
base = data.base;

var first = true;
var max = null;
data = addMaxToData(data);

if ( data.options.yaxis.max ) {
Expand Down

0 comments on commit c1429e8

Please sign in to comment.