From 8fed6e639d45795470dc263cbc58bcd8a343c683 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 9 Mar 2021 20:50:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E4=B8=8Bcontext?= =?UTF-8?q?=E7=9A=84=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fix/fix.compact.ie.js | 4 ++-- dist/fix/fix.compact.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/fix/fix.compact.ie.js b/dist/fix/fix.compact.ie.js index 5f1444316..4598b7c58 100644 --- a/dist/fix/fix.compact.ie.js +++ b/dist/fix/fix.compact.ie.js @@ -82,7 +82,7 @@ if (p instanceof Fix.Model || p.store || p.__cacheStore) { break; } - p = p._context || p._parent || (p.options && p.options.element); + p = p._parent || (p.options && p.options.element) || p._context; } if (p) { if (p instanceof Fix.Model) { @@ -106,7 +106,7 @@ function createStore () { var needPop = false; if (_global.Fix && this._store) { - var store = findStore(this.options.context || this._context || this._parent || this.options.element); + var store = findStore(this.options.context || this._parent || this.options.element || this._context); if (store) { pushTarget(store); needPop = true; diff --git a/dist/fix/fix.compact.js b/dist/fix/fix.compact.js index 44d4256b5..658776857 100644 --- a/dist/fix/fix.compact.js +++ b/dist/fix/fix.compact.js @@ -86,7 +86,7 @@ if (p instanceof Fix.Model || p.store || p.__cacheStore) { break; } - p = p._context || p._parent || (p.options && p.options.element); + p = p._parent || (p.options && p.options.element) || p._context; } if (p) { if (p instanceof Fix.Model) { @@ -114,7 +114,7 @@ function createStore () { var needPop = false; if (_global.Fix && this._store) { - var store = findStore(this.options.context || this._context || this._parent || this.options.element); + var store = findStore(this.options.context || this._parent || this.options.element || this._context); if (store) { pushTarget(store); needPop = true;