Remove unnecessary return statements

These statements were automatically added by CoffeeScript.

I'm only removing the obvious cases; there might be more cases where the
`return` statement isn't necessary.
This commit is contained in:
Javi Martín
2019-07-02 03:09:38 +02:00
parent d93a029ce5
commit ec5af1f1bc
55 changed files with 297 additions and 364 deletions

View File

@@ -1,15 +1,15 @@
// Generated by CoffeeScript 1.12.6
(function() {
"use strict";
App.CheckboxToggle = {
initialize: function() {
return $("[data-checkbox-toggle]").on("change", function() {
$("[data-checkbox-toggle]").on("change", function() {
var $target;
$target = $($(this).data("checkbox-toggle"));
if ($(this).is(":checked")) {
return $target.show();
$target.show();
} else {
return $target.hide();
$target.hide();
}
});
}