Permalink
Browse files

fixed TypeError bug

  • Loading branch information...
1 parent fba4ede commit a33e9bddc447376178b18bad8c1f454ba434ae0a @jeads jeads committed Mar 1, 2013
View
7 datazilla/webapp/static/js/b2g_apps/ReplicateGraphComponent.js
@@ -88,7 +88,7 @@ var ReplicateGraphComponent = new Class({
var testName = "";
var i=0;
var j=0;
- var results = {};
+ var results = [];
this.hoverData = {};
@@ -129,7 +129,10 @@ var ReplicateGraphComponent = new Class({
this.chartOptions
);
- this.view.setHoverData(1, results[0]);
+ //Initialize the replicate detail to first replicate
+ if(results != undefined){
+ this.view.setHoverData(1, results[0]);
+ }
/******
* NOTE: This is a workaround for an issue in flot that only
View
2 datazilla/webapp/static/js/b2g_apps/apps-summary-min.js
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit a33e9bd

Please sign in to comment.