diff options
author | Mark Otto <markdotto@gmail.com> | 2019-01-04 19:29:45 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2019-01-04 19:29:45 +0300 |
commit | 1488a83b139116e3fe337e8c4a739e1f21248b66 (patch) | |
tree | 96b794465fbaf8c9fb59e66deed502dc52824e59 /js/dist/util.js | |
parent | 89a73f100e7a3c765314e5cff0eeaf9c051f2944 (diff) |
latest changes
Diffstat (limited to 'js/dist/util.js')
-rw-r--r-- | js/dist/util.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/js/dist/util.js b/js/dist/util.js index 0f1d4f002e..2a07e37606 100644 --- a/js/dist/util.js +++ b/js/dist/util.js @@ -1,13 +1,13 @@ /*! * Bootstrap util.js v4.2.1 (https://getbootstrap.com/) - * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) : typeof define === 'function' && define.amd ? define(['jquery'], factory) : - (global.Util = factory(global.jQuery)); -}(this, (function ($) { 'use strict'; + (global = global || self, global.Util = factory(global.jQuery)); +}(this, function ($) { 'use strict'; $ = $ && $.hasOwnProperty('default') ? $['default'] : $; @@ -89,7 +89,11 @@ selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : ''; } - return selector && document.querySelector(selector) ? selector : null; + try { + return document.querySelector(selector) ? selector : null; + } catch (err) { + return null; + } }, getTransitionDurationFromElement: function getTransitionDurationFromElement(element) { if (!element) { @@ -164,5 +168,5 @@ return Util; -}))); +})); //# sourceMappingURL=util.js.map |