From 7600bc26a4003513b38b66af1ea10f970e03413b Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 10 Mar 2022 21:34:26 +0800 Subject: [PATCH] chore: bugfix --- dist/fix/fix.compact.js | 4 ++-- src/core/4.widget.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 88148367c..87d22bd83 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -150,8 +150,8 @@ } }; - var unMount = BI.Widget.prototype.__d; - BI.Widget.prototype.__d = function () { + var unMount = BI.Widget.prototype.__destroy; + BI.Widget.prototype.__destroy = function () { try { unMount.apply(this, arguments); } catch (e) { diff --git a/src/core/4.widget.js b/src/core/4.widget.js index bddc7caba..60e642db3 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -753,7 +753,7 @@ this.__d(); this.element.empty(); this.element.unbind(); - this._initCurrent(); + // this._initCurrent(); this._init(); this._mount(); // this._initRef();