Skip to content

Commit

Permalink
修复「一个页面中多个图表」和「页面不阻塞滚动」两个页面无法二次进入的bug。
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchang committed May 3, 2018
1 parent 17af058 commit e79ba86
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pages/move/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ Page({
height: height
});
canvas.setChart(barChart);

// 将 barChart 绑定到 this,以供其他函数访问
this.barChart = barChart;
barChart.setOption(getBarOption());

return barChart;
Expand Down
5 changes: 0 additions & 5 deletions pages/multiCharts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ Page({
height: height
});
canvas.setChart(barChart);

// 将 barChart 绑定到 this,以供其他函数访问
this.barChart = barChart;
barChart.setOption(getBarOption());

return barChart;
Expand All @@ -33,8 +30,6 @@ Page({
height: height
});
canvas.setChart(scatterChart);

this.scatterChart = scatterChart;
scatterChart.setOption(getScatterOption());

return scatterChart;
Expand Down

0 comments on commit e79ba86

Please sign in to comment.