From 30fb4ddd69680c7d7d38ba2b1be91b562991f708 Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 9 Dec 2020 16:29:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A6=82=E6=9E=9C=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E6=9C=89jquery=E5=AF=B9=E8=B1=A1=E6=97=B6?= =?UTF-8?q?=E5=88=99=E4=B8=8Dexpose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/jquery/_jquery.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/platform/web/jquery/_jquery.js b/src/core/platform/web/jquery/_jquery.js index 678832a93..590fda029 100644 --- a/src/core/platform/web/jquery/_jquery.js +++ b/src/core/platform/web/jquery/_jquery.js @@ -11003,7 +11003,9 @@ // Expose jQuery and $ identifiers, even in // AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557) // and CommonJS for browser emulators (#13566) - window.jQuery = window.$ = jQuery; + if (!window.$ && !window.jQuery) { + window.jQuery = window.$ = jQuery; + } BI.jQuery = BI.$ = jQuery;