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:
@@ -1,27 +1,26 @@
|
||||
// Generated by CoffeeScript 1.12.6
|
||||
(function() {
|
||||
"use strict";
|
||||
App.Banners = {
|
||||
initialize: function() {
|
||||
$("[data-js-banner-title]").on({
|
||||
change: function() {
|
||||
return $("#js-banner-title").html($(this).val());
|
||||
$("#js-banner-title").html($(this).val());
|
||||
}
|
||||
});
|
||||
$("[data-js-banner-description]").on({
|
||||
change: function() {
|
||||
return $("#js-banner-description").html($(this).val());
|
||||
$("#js-banner-description").html($(this).val());
|
||||
}
|
||||
});
|
||||
$("[name='banner[background_color]']").on({
|
||||
change: function() {
|
||||
return $("#js-banner-background").css("background-color", $(this).val());
|
||||
$("#js-banner-background").css("background-color", $(this).val());
|
||||
}
|
||||
});
|
||||
return $("[name='banner[font_color]']").on({
|
||||
$("[name='banner[font_color]']").on({
|
||||
change: function() {
|
||||
$("#js-banner-title").css("color", $(this).val());
|
||||
return $("#js-banner-description").css("color", $(this).val());
|
||||
$("#js-banner-description").css("color", $(this).val());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user