We use it in Ruby, and it will make it easier to change all quotes to double quotes in CoffeeScript files.
9 lines
236 B
CoffeeScript
9 lines
236 B
CoffeeScript
App.Followable =
|
|
|
|
update: (followable_id, button, notice) ->
|
|
$("##{followable_id} .js-follow").html(button)
|
|
if ($('[data-alert]').length > 0)
|
|
$('[data-alert]').replaceWith(notice)
|
|
else
|
|
$("body").append(notice)
|