Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(function(button) {
if (format.is(button.name)) {
classes(button).add('ed-button-active');
} else {
classes(button).remove('ed-button-active');
}
})(buttons[i]);
}
(function(name) {
if (format.is(name)) {
format(name);
}
})(spanformats[i]);
}
(function(button) {
if (format.is(button.name)) {
classes(button).add('ed-button-active');
} else {
classes(button).remove('ed-button-active');
}
})(buttons[i]);
}