From ac67e04ce016406377595291ff1357eda63cc311 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 11 Mar 2019 17:13:30 +0200 Subject: Dist. --- js/dist/carousel.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'js/dist/carousel.js') diff --git a/js/dist/carousel.js b/js/dist/carousel.js index 57144f43f3..c19272b324 100644 --- a/js/dist/carousel.js +++ b/js/dist/carousel.js @@ -72,7 +72,8 @@ */ var MILLISECONDS_MULTIPLIER = 1000; var TRANSITION_END = 'transitionend'; - 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(); @@ -88,7 +89,7 @@ try { return document.querySelector(selector) ? selector : null; - } catch (err) { + } catch (error) { return null; } }; @@ -703,7 +704,7 @@ data.to(config); } else if (typeof action === 'string') { if (typeof data[action] === 'undefined') { - throw new Error("No method named \"" + action + "\""); + throw new TypeError("No method named \"" + action + "\""); } data[action](); -- cgit v1.2.3