Skip to content

Commit

Permalink
Bug Fixes: delGraph - Delete exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaming743 authored May 14, 2019
1 parent 6d65576 commit f6f7c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/crender.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ CRender.prototype.sortGraphsByIndex = function () {
*/
CRender.prototype.delGraph = function (graph) {
if (typeof graph.delProcessor !== 'function') return

this.graphs = this.graphs.filter(graph => graph)

graph.delProcessor(this)

this.graphs = this.graphs.filter(graph => graph)

this.drawAllGraph()
}
Expand Down

0 comments on commit f6f7c18

Please sign in to comment.