diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-03-11 18:13:30 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-11 18:59:08 +0300 |
commit | ac67e04ce016406377595291ff1357eda63cc311 (patch) | |
tree | 4ad39e3b7079bdb0494ed827f90f49dda7b35ee2 /js/dist/dropdown.js | |
parent | c2b05dd7b5e6e66475dc89de1ca9466c92eb1e90 (diff) |
Dist.
Diffstat (limited to 'js/dist/dropdown.js')
-rw-r--r-- | js/dist/dropdown.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/dist/dropdown.js b/js/dist/dropdown.js index fb620d385b..2986d9dda3 100644 --- a/js/dist/dropdown.js +++ b/js/dist/dropdown.js @@ -71,7 +71,8 @@ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ - var jQuery = window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp) + var _window = window, + jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp) var toType = function toType(obj) { return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase(); @@ -87,7 +88,7 @@ try { return document.querySelector(selector) ? selector : null; - } catch (err) { + } catch (error) { return null; } }; @@ -162,7 +163,6 @@ DROPRIGHT: 'dropright', DROPLEFT: 'dropleft', MENURIGHT: 'dropdown-menu-right', - MENULEFT: 'dropdown-menu-left', POSITION_STATIC: 'position-static' }; var Selector = { @@ -468,7 +468,7 @@ if (typeof config === 'string') { if (typeof data[config] === 'undefined') { - throw new Error("No method named \"" + config + "\""); + throw new TypeError("No method named \"" + config + "\""); } data[config](); |