提交 07f533a2 编写于 作者: R Ryunosuke SATO

Fix CoffeeScript example

`a[data-color]` is not used in example html.
上级 53c22e09
...@@ -111,7 +111,7 @@ paintIt = (element, backgroundColor, textColor) -> ...@@ -111,7 +111,7 @@ paintIt = (element, backgroundColor, textColor) ->
element.style.color = textColor element.style.color = textColor
$ -> $ ->
$("a[data-color]").click -> $("a[data-background-color]").click ->
backgroundColor = $(this).data("background-color") backgroundColor = $(this).data("background-color")
textColor = $(this).data("text-color") textColor = $(this).data("text-color")
paintIt(this, backgroundColor, textColor) paintIt(this, backgroundColor, textColor)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册