Use string interpolation in CoffeeScript
We use it in Ruby, and it will make it easier to change all quotes to double quotes in CoffeeScript files.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
App.Flaggable =
|
||||
|
||||
update: (resource_id, button) ->
|
||||
$("#" + resource_id + " .js-flag-actions").html(button).foundation()
|
||||
$("##{resource_id} .js-flag-actions").html(button).foundation()
|
||||
|
||||
Reference in New Issue
Block a user