diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2018-01-19 02:02:42 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2018-01-19 02:02:42 +0300 |
commit | bbb8b796ca6225ce90e53665edb4f370535c45a8 (patch) | |
tree | c72b65dc83c43851ea10e158dde77e289d33f73e /assets/javascripts/bootstrap/util.js | |
parent | 176cbf4fbf07e29783b0726f8426da0a7ebe5ead (diff) |
rake update[v4.0.0]
Diffstat (limited to 'assets/javascripts/bootstrap/util.js')
-rw-r--r-- | assets/javascripts/bootstrap/util.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/assets/javascripts/bootstrap/util.js b/assets/javascripts/bootstrap/util.js index f51988e..1e33eb8 100644 --- a/assets/javascripts/bootstrap/util.js +++ b/assets/javascripts/bootstrap/util.js @@ -1,6 +1,6 @@ /** * -------------------------------------------------------------------------- - * Bootstrap (v4.0.0-beta.3): util.js + * Bootstrap (v4.0.0): util.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ @@ -11,7 +11,7 @@ var Util = function ($) { * ------------------------------------------------------------------------ */ var transition = false; - var MAX_UID = 1000000; // shoutout AngusCroll (https://goo.gl/pxwQGp) + var MAX_UID = 1000000; // Shoutout AngusCroll (https://goo.gl/pxwQGp) function toType(obj) { return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); @@ -32,7 +32,7 @@ var Util = function ($) { } function transitionEndTest() { - if (window.QUnit) { + if (typeof window !== 'undefined' && window.QUnit) { return false; } @@ -66,7 +66,7 @@ var Util = function ($) { } function escapeId(selector) { - // we escape IDs in case of special selectors (selector = '#myId:something') + // We escape IDs in case of special selectors (selector = '#myId:something') // $.escapeSelector does not exist in jQuery < 3 selector = typeof $.escapeSelector === 'function' ? $.escapeSelector(selector).substr(1) : selector.replace(/(:|\.|\[|\]|,|=|@)/g, '\\$1'); return selector; @@ -93,7 +93,7 @@ var Util = function ($) { if (!selector || selector === '#') { selector = element.getAttribute('href') || ''; - } // if it's an ID + } // If it's an ID if (selector.charAt(0) === '#') { @@ -103,7 +103,7 @@ var Util = function ($) { try { var $selector = $(document).find(selector); return $selector.length > 0 ? selector : null; - } catch (error) { + } catch (err) { return null; } }, |