Use spaces around curly braces in CoffeeScript
Just like we do in Ruby.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user