From 4a120931899b440c5b5db69b931f0d937230e896 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 15 Oct 2021 15:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20=E6=95=B4?= =?UTF-8?q?=E7=90=86=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 29ea02322..b0d245808 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -50,7 +50,6 @@ // 覆盖父类的_constructor方法,widget不走ob的生命周期 _constructed: function () { - var self = this; if (this.setup) { pushTarget(this); var delegate = this.setup(this.options); @@ -377,6 +376,7 @@ * @param deep 子节点是否也是按照当前force处理 * @param lifeHook 生命周期钩子触不触发,默认触发 * @param predicate 递归每个widget的回调 + * @param layer 组件层级 * @returns {boolean} * @private */ @@ -421,7 +421,6 @@ _mountChildren: null, _update: function (nextProps, shouldUpdate) { - var o = this.options; callLifeHook(this, "beforeUpdate"); if (shouldUpdate) { var res = this.update && this.update(nextProps, shouldUpdate); @@ -570,7 +569,6 @@ }, removeWidget: function (nameOrWidget) { - var self = this; if (BI.isWidget(nameOrWidget)) { BI.remove(this._children, nameOrWidget); } else {