diff --git a/AAInfographics/AAChartCreator/AAChartView.swift b/AAInfographics/AAChartCreator/AAChartView.swift index 5f55c1a..0987244 100644 --- a/AAInfographics/AAChartCreator/AAChartView.swift +++ b/AAInfographics/AAChartCreator/AAChartView.swift @@ -281,6 +281,7 @@ public class AAChartView: WKWebView { } private func addMouseOverEventMessageHandler() { + configuration.userContentController.removeScriptMessageHandler(forName: kUserContentMessageNameMouseOver) configuration.userContentController.add(AALeakAvoider.init(delegate: self), name: kUserContentMessageNameMouseOver) }