Skip to content

Commit

Permalink
修复移除指标图报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Apr 10, 2020
1 parent 73556a0 commit 6a9e9fa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions dist/klinecharts.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/klinecharts.development.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/klinecharts.production.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "klinecharts",
"version": "5.1.0",
"version": "5.1.1",
"description": "Lightweight k-line chart built with html5 canvas",
"main": "index.js",
"types": "./types/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/series/ChartSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ export default class ChartSeries {
if (seriesPos !== -1) {
this._technicalIndicatorSeries[seriesPos].destroy()
this._separatorSeries[seriesPos].destroy()
delete this._technicalIndicatorSeries[seriesPos]
delete this._separatorSeries[seriesPos]
this._technicalIndicatorSeries.splice(seriesPos, 1)
this._separatorSeries.splice(seriesPos, 1)
for (let i = 0; i < this._separatorSeries.length; i++) {
this._separatorSeries[i].updateSeriesIndex(i)
}
Expand Down

0 comments on commit 6a9e9fa

Please sign in to comment.