From f6f7c186a2880030f559ed84c33631531d5389eb Mon Sep 17 00:00:00 2001 From: JM <32119686+jiaming743@users.noreply.github.com> Date: Tue, 14 May 2019 19:44:25 +0800 Subject: [PATCH] Bug Fixes: delGraph - Delete exception. --- class/crender.class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/crender.class.js b/class/crender.class.js index 5de8fca..b756b88 100644 --- a/class/crender.class.js +++ b/class/crender.class.js @@ -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() }