Browse Source

KERNEL-13158: 包裹BI.Widget.pushContext()

es6
guy 2 years ago
parent
commit
3e440e09fb
  1. 10
      src/core/4.widget.js

10
src/core/4.widget.js

@ -938,16 +938,6 @@
return vm;
};
BI.execWithContext = function (_context, fn) {
BI.Widget.pushContext(_context);
try {
fn();
} catch (e) {
// nothing
}
BI.Widget.popContext();
};
BI.watch = function (vm, watch, handler) {
// 必须要保证组件当前环境存在
if (BI.Widget.current) {

Loading…
Cancel
Save