diff options
author | Johann-S <johann.servoire@gmail.com> | 2017-10-23 10:35:27 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2017-10-23 10:35:27 +0300 |
commit | 1487c3a9947b0eb55c61b5d93ff9f0c69a812aeb (patch) | |
tree | 5f05dafe9448cb79d9ea8ffa2dc86a15d3f59ea6 /js/src/util.js | |
parent | 0d71a8a738688455746e91f7806fa0515c96d263 (diff) |
Add `Util.jQuery` which will detect jQuery instead of relying on global `$` (#24513)
Diffstat (limited to 'js/src/util.js')
-rw-r--r-- | js/src/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/util.js b/js/src/util.js index 16d114b1ab..e3e7797931 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -154,6 +154,10 @@ const Util = (() => { } } } + }, + + get jQuery() { + return window.jQuery || window.$ } } |