From 6ebdc3591e14f0ed3866cd814c1786cb5ce1f6d7 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 11 Oct 2020 23:15:24 +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 --- dist/fix/fix.compact.ie.js | 5 +++-- dist/fix/fix.compact.js | 3 ++- src/core/widget.js | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dist/fix/fix.compact.ie.js b/dist/fix/fix.compact.ie.js index bb00c9299..09ac4f861 100644 --- a/dist/fix/fix.compact.ie.js +++ b/dist/fix/fix.compact.ie.js @@ -32,8 +32,9 @@ Fix.Model.target = target = _target; } - function popTarget() { - Fix.Model.target = target = targetStack.pop(); + function popTarget () { + targetStack.pop(); + Fix.Model.target = target = null; } var oldWatch = Fix.watch; diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index dbf7ae261..7e6e5f3ca 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -33,7 +33,8 @@ } function popTarget () { - Fix.Model.target = target = targetStack.pop(); + targetStack.pop(); + Fix.Model.target = target = null; } var oldWatch = Fix.watch; diff --git a/src/core/widget.js b/src/core/widget.js index d98ec6398..73657f86c 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -517,7 +517,8 @@ }; BI.Widget.popContext = function () { - BI.Widget.context = context = contextStack.pop(); + contextStack.pop(); + BI.Widget.context = context = null; }; function pushTarget (_current) { @@ -526,7 +527,8 @@ } function popTarget () { - BI.Widget.current = current = currentStack.pop(); + currentStack.pop(); + BI.Widget.current = current = null; } BI.onBeforeMount = function (beforeMount) {