From f777b840ff3eba44985bb842f470abff05a30825 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 12 Dec 2021 23:23:34 +0800 Subject: [PATCH] =?UTF-8?q?worker=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fix/fix.compact.js | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index abe505d96..88148367c 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -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) {