Browse Source

worker模式

es6
guy 3 years ago
parent
commit
f777b840ff
  1. 18
      dist/fix/fix.compact.js

18
dist/fix/fix.compact.js vendored

@ -99,22 +99,12 @@
}
}
// _.each(["populate", "addItems", "prependItems"], function (name) {
// var old = BI.Loader.prototype[name];
// BI.Loader.prototype[name] = function () {
// BI.Widget.pushContext(this);
// try {
// var result = old.apply(this, arguments);
// } catch (e) {
// console.error(e);
// }
// BI.Widget.popContext();
// return result;
// };
// });
function createStore () {
var needPop = false;
var workerMode = BI.Providers.getProvider("bi.provider.system").getWorkerMode();
if (workerMode && this._worker) {
return;
}
if (this._store) {
var store = findStore(this.options.context || this._parent || this.options.element || this._context);
if (store) {

Loading…
Cancel
Save