aboutsummaryrefslogtreecommitdiff
path: root/js/src/util.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-11-01 12:28:03 +0100
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commit99c3119c8269ba1c275cab744fa154c11e49bace (patch)
treecca808eb703467a7ee4227a51fa867ad52810736 /js/src/util.js
parentb5077a1a8170cf4e65d8e0e1b5b4b1da0ce5cd90 (diff)
downloadbootstrap-99c3119c8269ba1c275cab744fa154c11e49bace.tar.xz
bootstrap-99c3119c8269ba1c275cab744fa154c11e49bace.zip
Return a new function with Util.noop
Diffstat (limited to 'js/src/util.js')
-rw-r--r--js/src/util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/util.js b/js/src/util.js
index de4f061bb..667f46076 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -235,8 +235,9 @@ const Util = {
return Util.findShadowRoot(element.parentNode)
},
- // eslint-disable-next-line no-empty-function
noop() {
+ // eslint-disable-next-line no-empty-function
+ return function () {}
},
get jQuery() {