From 1c9962bb700b6f105f73d8a0484abe9ca110bd1e Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 11 Oct 2020 22:46:08 +0800 Subject: [PATCH] =?UTF-8?q?context=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/widget.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/widget.js b/src/core/widget.js index fe8f60abb..d98ec6398 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -338,7 +338,9 @@ throw new Error("name has already been existed"); } widget._setParent && widget._setParent(this); + BI.Widget.pushContext(widget); widget._lazyConstructor(); + BI.Widget.popContext(); widget.on(BI.Events.DESTROY, function () { BI.remove(self._children, this); });