aboutsummaryrefslogtreecommitdiff
path: root/js/src/util.js
diff options
context:
space:
mode:
authorGijs Boddeus <[email protected]>2017-09-13 16:46:14 +0200
committerGitHub <[email protected]>2017-09-13 16:46:14 +0200
commitcf004433e0312482a8c4918d559f38c19a3e14d9 (patch)
tree56fd67d5a60a1fe5442c969d29918db4f463b827 /js/src/util.js
parent4356d08abb4d94785af15f3cc9be0e553f1c1c03 (diff)
parent75d435f76e48b19007495a02e79b0d41f2690361 (diff)
downloadbootstrap-cf004433e0312482a8c4918d559f38c19a3e14d9.tar.xz
bootstrap-cf004433e0312482a8c4918d559f38c19a3e14d9.zip
Merge pull request #4 from twbs/v4-dev
update forked v4-dev
Diffstat (limited to 'js/src/util.js')
-rw-r--r--js/src/util.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/src/util.js b/js/src/util.js
index 69fb8283c..b18d0f776 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -1,3 +1,5 @@
+import $ from 'jquery'
+
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.0.0-beta): util.js
@@ -5,7 +7,7 @@
* --------------------------------------------------------------------------
*/
-const Util = (($) => {
+const Util = (() => {
/**
@@ -117,7 +119,7 @@ const Util = (($) => {
}
try {
- const $selector = $(selector)
+ const $selector = $(document).find(selector)
return $selector.length > 0 ? selector : null
} catch (error) {
return null