Browse Source

Merge pull request #1109 in VISUAL/fineui from ~YOUNG/fineui:master to master

* commit 'c348a5d1b69995f6f09074a745487937f4de192d':
  BI-46898 fix: catch异常
es6
Young 5 years ago
parent
commit
59ea867990
  1. 12
      dist/fix/fix.compact.js

12
dist/fix/fix.compact.js vendored

@ -54,7 +54,11 @@
}
return oldWatch.call(this, model, expOrFn, function () {
options && options.store && pushTarget(options.store);
try {
var res = cb.apply(this, arguments);
} catch (e) {
console.error(e);
}
options && options.store && popTarget();
return res;
}, options);
@ -91,7 +95,11 @@
pushContext(context);
pushed = true;
}
try {
var result = _create.apply(this, arguments);
} catch (e) {
console.error(e);
}
pushed && popContext();
return result;
};
@ -100,7 +108,11 @@
var old = BI.Loader.prototype[name];
BI.Loader.prototype[name] = function () {
pushContext(this);
try {
var result = old.apply(this, arguments);
} catch (e) {
console.error(e);
}
popContext();
return result;
};

Loading…
Cancel
Save