Browse files

fixed hover bug

  • Loading branch information...
1 parent dd72439 commit 545b1894febe007aeaae598939ad9555bda612ef @jeads jeads committed Jan 28, 2013
View
7 datazilla/webapp/static/js/b2g_apps/PerformanceGraphComponent.js
@@ -211,6 +211,7 @@ var PerformanceGraphComponent = new Class({
if(!this.replicatesInitialized && this.seriesIndexDataMap[seriesIndex]){
this._clickPlot({}, {}, { 'seriesIndex':seriesIndex, 'dataIndex':0 });
+ this.view.resetSeriesLabelBackground(this.chartData);
this.replicatesInitialized = true;
}
},
@@ -230,11 +231,9 @@ var PerformanceGraphComponent = new Class({
},
_hoverPlot: function(event, pos, item){
- if(_.isEmpty(item)){
-
- this.view.resetSeriesLabelBackground(this.chartData);
+ this.view.resetSeriesLabelBackground(this.chartData);
- }else {
+ if(!_.isEmpty(item)){
var seriesDatum = this.seriesIndexDataMap[ item.seriesIndex ];
var datapointDatum = this.seriesIndexDataMap[ item.seriesIndex ]['full_data'][ item.dataIndex ];
this.view.setDetailContainer(seriesDatum, datapointDatum[0]);
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 545b189

Please sign in to comment.