Use spaces around curly braces in CoffeeScript

Just like we do in Ruby.
This commit is contained in:
Javi Martín
2019-03-04 13:40:26 +01:00
parent a0976d8bfd
commit d963657e41
5 changed files with 8 additions and 8 deletions

View File

@@ -2,8 +2,8 @@ App.Sortable =
initialize: ->
$(".sortable").sortable
update: (event, ui) ->
new_order = $(this).sortable('toArray', {attribute: 'data-answer-id'});
new_order = $(this).sortable('toArray', { attribute: 'data-answer-id' });
$.ajax
url: $('.sortable').data('js-url'),
data: {ordered_list: new_order},
data: { ordered_list: new_order },
type: 'POST'