Skip to content

Commit

Permalink
Triple quotes allow for string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
pfiller committed Jul 10, 2013
1 parent 95daa8a commit d741861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class AbstractChosen

style = if option.style.cssText != "" then " style=\"#{option.style}\"" else ""

'<li id="' + option.dom_id + '" class="' + classes.join(' ') + '"'+style+'>' + option.search_text + '</li>'
"""<li id="#{option.dom_id}" class="#{classes.join(' ')}"#{style}>#{option.search_text}</li>"""

results_update_field: ->
this.set_default_text()
Expand Down

0 comments on commit d741861

Please sign in to comment.