Browse Source

context重构

es6
guy 4 years ago
parent
commit
6ebdc3591e
  1. 5
      dist/fix/fix.compact.ie.js
  2. 3
      dist/fix/fix.compact.js
  3. 6
      src/core/widget.js

5
dist/fix/fix.compact.ie.js vendored

@ -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;

3
dist/fix/fix.compact.js vendored

@ -33,7 +33,8 @@
}
function popTarget () {
Fix.Model.target = target = targetStack.pop();
targetStack.pop();
Fix.Model.target = target = null;
}
var oldWatch = Fix.watch;

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

Loading…
Cancel
Save