src/Ayaline/Bundle/ComposerBundle/Resources/public/js/ladda.js
Function create
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create(button) {
if (typeof button === "undefined") {
console.warn("Ladda button target must be defined.");
return;
}
Function bind
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function bind(target, options) {
options = options || {};
var targets = [];
if (typeof target === "string") {
targets = toArray(document.querySelectorAll(target));