Browse Source

Pull request #1532: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '9ba0f3f17ee9e4a5db28a457ecbba6a668016a6a':
  context重构
  context重构
es6
guy 4 years ago
parent
commit
a11cd667f5
  1. 4
      dist/fix/fix.compact.ie.js
  2. 4
      dist/fix/fix.compact.js
  3. 8
      src/core/widget.js

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

@ -33,9 +33,11 @@
}
function popTarget () {
targetStack.pop();
Fix.Model.target = target = targetStack.pop();
if (targetStack.length <= 0) {
Fix.Model.target = target = null;
}
}
var oldWatch = Fix.watch;
Fix.watch = function (model, expOrFn, cb, options) {

4
dist/fix/fix.compact.js vendored

@ -33,9 +33,11 @@
}
function popTarget () {
targetStack.pop();
Fix.Model.target = target = targetStack.pop();
if (targetStack.length <= 0) {
Fix.Model.target = target = null;
}
}
var oldWatch = Fix.watch;
Fix.watch = function (model, expOrFn, cb, options) {

8
src/core/widget.js

@ -517,8 +517,10 @@
};
BI.Widget.popContext = function () {
contextStack.pop();
BI.Widget.context = context = contextStack.pop();
if (contextStack.length <= 0) {
BI.Widget.context = context = null;
}
};
function pushTarget (_current) {
@ -527,9 +529,11 @@
}
function popTarget () {
currentStack.pop();
BI.Widget.current = current = currentStack.pop();
if (currentStack.length <= 0) {
BI.Widget.current = current = null;
}
}
BI.onBeforeMount = function (beforeMount) {
if (current) {

Loading…
Cancel
Save