Permalink
Browse files

Fix CoffeeScript example

`a[data-color]` is not used in example html.
  • Loading branch information...
1 parent 53c22e0 commit 07f533a2dacc9a88fdf0db14c83c184dfe58e5ab @tricknotes tricknotes committed Feb 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/working_with_javascript_in_rails.md
View
2 guides/source/working_with_javascript_in_rails.md
@@ -111,7 +111,7 @@ paintIt = (element, backgroundColor, textColor) ->
element.style.color = textColor
$ ->
- $("a[data-color]").click ->
+ $("a[data-background-color]").click ->
backgroundColor = $(this).data("background-color")
textColor = $(this).data("text-color")
paintIt(this, backgroundColor, textColor)

0 comments on commit 07f533a

Please sign in to comment.