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) {