Code cleanup con CodeMaid

This commit is contained in:
Samuele E. Locatelli
2020-09-11 12:45:52 +02:00
parent 831ad26bb0
commit 91ccb018af
293 changed files with 52598 additions and 50875 deletions
+1 -47
View File
@@ -127,7 +127,6 @@
* --------------------------------------------------------------------------
*/
var Util = {
TRANSITION_END: 'bsTransitionEnd',
getUID: function getUID(prefix) {
@@ -157,7 +156,6 @@
return 0;
} // Get transition-duration of the element
var transitionDuration = $(element).css('transition-duration');
var transitionDelay = $(element).css('transition-delay');
var floatTransitionDuration = parseFloat(transitionDuration);
@@ -167,7 +165,6 @@
return 0;
} // If multiple durations are defined, take the first
transitionDuration = transitionDuration.split(',')[0];
transitionDelay = transitionDelay.split(',')[0];
return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
@@ -203,7 +200,6 @@
return null;
} // Can find the shadow root otherwise it'll return the document
if (typeof element.getRootNode === 'function') {
var root = element.getRootNode();
return root instanceof ShadowRoot ? root : null;
@@ -213,7 +209,6 @@
return element;
} // when we don't find a shadow root
if (!element.parentNode) {
return null;
}
@@ -252,7 +247,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Alert =
@@ -262,7 +256,6 @@
this._element = element;
} // Getters
var _proto = Alert.prototype;
// Public
@@ -372,7 +365,6 @@
* ------------------------------------------------------------------------
*/
$(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
/**
* ------------------------------------------------------------------------
@@ -420,7 +412,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Button =
@@ -430,7 +421,6 @@
this._element = element;
} // Getters
var _proto = Button.prototype;
// Public
@@ -514,7 +504,6 @@
* ------------------------------------------------------------------------
*/
$(document).on(Event$1.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function (event) {
event.preventDefault();
var button = event.target;
@@ -627,7 +616,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Carousel =
@@ -651,7 +639,6 @@
this._addEventListeners();
} // Getters
var _proto = Carousel.prototype;
// Public
@@ -766,7 +753,6 @@
this.prev();
} // swipe right
if (direction < 0) {
this.next();
}
@@ -1117,7 +1103,6 @@
* ------------------------------------------------------------------------
*/
$(document).on(Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler);
$(window).on(Event$2.LOAD_DATA_API, function () {
var carousels = [].slice.call(document.querySelectorAll(Selector$2.DATA_RIDE));
@@ -1187,7 +1172,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Collapse =
@@ -1225,7 +1209,6 @@
}
} // Getters
var _proto = Collapse.prototype;
// Public
@@ -1470,7 +1453,6 @@
* ------------------------------------------------------------------------
*/
$(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function (event) {
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
if (event.currentTarget.tagName === 'A') {
@@ -1582,7 +1564,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Dropdown =
@@ -1598,7 +1579,6 @@
this._addEventListeners();
} // Getters
var _proto = Dropdown.prototype;
// Public
@@ -1627,7 +1607,6 @@
return;
} // Disable totally Popper.js for Dropdown in Navbar
if (!this._inNavbar) {
/**
* Check for Popper dependency
@@ -1651,7 +1630,6 @@
// to allow the menu to "escape" the scroll parent's boundaries
// https://github.com/twbs/bootstrap/issues/24251
if (this._config.boundary !== 'scrollParent') {
$(parent).addClass(ClassName$4.POSITION_STATIC);
}
@@ -1662,7 +1640,6 @@
// only needed because of broken event delegation on iOS
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement && $(parent).closest(Selector$4.NAVBAR_NAV).length === 0) {
$(document.body).children().on('mouseover', null, $.noop);
}
@@ -1824,7 +1801,6 @@
boundariesElement: this._config.boundary
}
} // Disable Popper.js if we have a static display
};
if (this._config.display === 'static') {
@@ -1899,7 +1875,6 @@
} // If this is a touch-enabled device we remove the extra
// empty mouseover listeners we added for iOS support
if ('ontouchstart' in document.documentElement) {
$(document.body).children().off('mouseover', null, $.noop);
}
@@ -2005,7 +1980,6 @@
* ------------------------------------------------------------------------
*/
$(document).on(Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event$4.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler).on(Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, Dropdown._clearMenus).on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) {
event.preventDefault();
event.stopPropagation();
@@ -2087,7 +2061,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Modal =
@@ -2105,7 +2078,6 @@
this._scrollbarWidth = 0;
} // Getters
var _proto = Modal.prototype;
// Public
@@ -2564,7 +2536,6 @@
* ------------------------------------------------------------------------
*/
$(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) {
var _this10 = this;
@@ -2655,7 +2626,6 @@
*
* Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts
*/
};
var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi;
/**
@@ -2821,7 +2791,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Tooltip =
@@ -2836,7 +2805,6 @@
throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)');
} // private
this._isEnabled = true;
this._timeout = 0;
this._hoverState = '';
@@ -2850,7 +2818,6 @@
this._setListeners();
} // Getters
var _proto = Tooltip.prototype;
// Public
@@ -3439,7 +3406,6 @@
* ------------------------------------------------------------------------
*/
$.fn[NAME$6] = Tooltip._jQueryInterface;
$.fn[NAME$6].Constructor = Tooltip;
@@ -3497,7 +3463,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Popover =
@@ -3626,7 +3591,6 @@
* ------------------------------------------------------------------------
*/
$.fn[NAME$7] = Popover._jQueryInterface;
$.fn[NAME$7].Constructor = Popover;
@@ -3686,7 +3650,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var ScrollSpy =
@@ -3711,7 +3674,6 @@
this._process();
} // Getters
var _proto = ScrollSpy.prototype;
// Public
@@ -3917,7 +3879,6 @@
* ------------------------------------------------------------------------
*/
$(window).on(Event$8.LOAD_DATA_API, function () {
var scrollSpys = [].slice.call(document.querySelectorAll(Selector$8.DATA_SPY));
var scrollSpysLength = scrollSpys.length;
@@ -3981,7 +3942,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Tab =
@@ -3991,7 +3951,6 @@
this._element = element;
} // Getters
var _proto = Tab.prototype;
// Public
@@ -4157,7 +4116,6 @@
* ------------------------------------------------------------------------
*/
$(document).on(Event$9.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function (event) {
event.preventDefault();
@@ -4218,7 +4176,6 @@
* Class Definition
* ------------------------------------------------------------------------
*/
};
var Toast =
@@ -4232,7 +4189,6 @@
this._setListeners();
} // Getters
var _proto = Toast.prototype;
// Public
@@ -4383,7 +4339,6 @@
* ------------------------------------------------------------------------
*/
$.fn[NAME$a] = Toast._jQueryInterface;
$.fn[NAME$a].Constructor = Toast;
@@ -4430,6 +4385,5 @@
exports.Tooltip = Tooltip;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=bootstrap.js.map
//# sourceMappingURL=bootstrap.js.map