From 959c26e25f60d80303ff0f6aadaf1ec815d979aa Mon Sep 17 00:00:00 2001 From: zsmj1994 Date: Wed, 10 Mar 2021 10:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E9=80=82?= =?UTF-8?q?=E9=85=8DupdateMode:=20"manual"=E7=9A=84=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/widget.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/widget.js b/src/core/widget.js index f398de5d4..f872b5470 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -7,7 +7,7 @@ */ !(function () { - function callLifeHook (self, life) { + function callLifeHook(self, life) { var hook = self.options[life] || self[life]; if (hook) { var hooks = BI.isArray(hook) ? hook : [hook]; @@ -76,7 +76,8 @@ shouldUpdate: null, - update: null, + update: function () { + }, beforeUpdate: null, @@ -98,7 +99,7 @@ _initRender: function () { var self = this; - function render () { + function render() { if (self.options.beforeRender || self.beforeRender) { (self.options.beforeRender || self.beforeRender).call(self, BI.bind(self._render, self)); } else { @@ -593,12 +594,12 @@ BI.Widget.context = context = contextStack.pop(); }; - function pushTarget (_current) { + function pushTarget(_current) { if (current) currentStack.push(current); BI.Widget.current = current = _current; } - function popTarget () { + function popTarget() { BI.Widget.current = current = currentStack.pop(); }