Browse Source

BI-52759 refactor: 对$和jQuery做下判断,没有则直接暴露出来

es6
Zhenfei.Li 5 years ago
parent
commit
1f3d9c4f7a
  1. 2
      src/core/platform/web/jquery/_jquery.js

2
src/core/platform/web/jquery/_jquery.js vendored

@ -9596,6 +9596,8 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
// })(); // })();
// Expose jQuery to the global object // Expose jQuery to the global object
BI.jQuery = BI.$ = jQuery; BI.jQuery = BI.$ = jQuery;
window.$ = window.$ || jQuery;
window.jQuery = window.jQuery || jQuery;
// Expose jQuery as an AMD module, but only for AMD loaders that // Expose jQuery as an AMD module, but only for AMD loaders that
// understand the issues with loading multiple versions of jQuery // understand the issues with loading multiple versions of jQuery

Loading…
Cancel
Save