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:
authorMark Otto <markdotto@gmail.com>2016-11-26 02:00:23 +0300
committerMark Otto <markdotto@gmail.com>2016-11-26 02:00:23 +0300
commit49be9bc63af9391721287c189bf2f9150aad15bc (patch)
tree255d689d20f0246a18ddf3070ce1a5c2b0cea09d /js/dist/util.js
parent432fe74c3182f3be258320fec31b0a8c5d70848d (diff)
grunt
Diffstat (limited to 'js/dist/util.js')
-rw-r--r--js/dist/util.js15
1 files changed, 5 insertions, 10 deletions
diff --git a/js/dist/util.js b/js/dist/util.js
index 65d49a07be..d53ea92206 100644
--- a/js/dist/util.js
+++ b/js/dist/util.js
@@ -55,7 +55,9 @@ var Util = function ($) {
for (var name in TransitionEndEvent) {
if (el.style[name] !== undefined) {
- return { end: TransitionEndEvent[name] };
+ return {
+ end: TransitionEndEvent[name]
+ };
}
}
@@ -102,9 +104,8 @@ var Util = function ($) {
getUID: function getUID(prefix) {
do {
- /* eslint-disable no-bitwise */
+ // eslint-disable-next-line no-bitwise
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
- /* eslint-enable no-bitwise */
} while (document.getElementById(prefix));
return prefix;
},
@@ -132,13 +133,7 @@ var Util = function ($) {
if (configTypes.hasOwnProperty(property)) {
var expectedTypes = configTypes[property];
var value = config[property];
- var valueType = void 0;
-
- if (value && isElement(value)) {
- valueType = 'element';
- } else {
- valueType = toType(value);
- }
+ var valueType = value && isElement(value) ? 'element' : toType(value);
if (!new RegExp(expectedTypes).test(valueType)) {
throw new Error(componentName.toUpperCase() + ': ' + ('Option "' + property + '" provided type "' + valueType + '" ') + ('but expected type "' + expectedTypes + '".'));