Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-06-12 21:50:30 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-09-10 12:06:30 +0300
commit3be585990cd017736df97a418e135e5cf2382d5a (patch)
tree6c094dd4c9c4610445408ae5e46372198c6492c4 /js/src/util.js
parent1c37a2ba77002331376c0b70abb7fc1acf02a70b (diff)
Comply to the new rules
Diffstat (limited to 'js/src/util.js')
-rw-r--r--js/src/util.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/js/src/util.js b/js/src/util.js
index 9beafc4b56..c27ab33ed6 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -34,6 +34,7 @@ function getSpecialTransitionEndEvent() {
if ($(event.target).is(this)) {
return event.handleObj.handler.apply(this, arguments) // eslint-disable-line prefer-rest-params
}
+
return undefined
}
}
@@ -71,9 +72,9 @@ const Util = {
getUID(prefix) {
do {
- // eslint-disable-next-line no-bitwise
prefix += ~~(Math.random() * MAX_UID) // "~~" acts like a faster Math.floor() here
} while (document.getElementById(prefix))
+
return prefix
},
@@ -87,7 +88,7 @@ const Util = {
try {
return document.querySelector(selector) ? selector : null
- } catch (err) {
+ } catch (_) {
return null
}
},
@@ -137,9 +138,9 @@ const Util = {
for (const property in configTypes) {
if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
const expectedTypes = configTypes[property]
- const value = config[property]
- const valueType = value && Util.isElement(value)
- ? 'element' : toType(value)
+ const value = config[property]
+ const valueType = value && Util.isElement(value) ?
+ 'element' : toType(value)
if (!new RegExp(expectedTypes).test(valueType)) {
throw new Error(