Skip to content

Commit

Permalink
Added todo [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jul 10, 2020
1 parent d3bc937 commit 3d2e717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/chartkick/helper.rb
Expand Up @@ -85,6 +85,7 @@ def chartkick_chart(klass, data_source, **options)
createjs = "new Chartkick[%{type}](%{id}, %{data}, %{options});" % js_vars

if defer
# TODO remove type in 4.0
js = <<JS
<script type="text/javascript"#{nonce_html}>
(function() {
Expand All @@ -100,6 +101,7 @@ def chartkick_chart(klass, data_source, **options)
</script>
JS
else
# TODO remove type in 4.0
js = <<JS
<script type="text/javascript"#{nonce_html}>
#{createjs}
Expand Down

0 comments on commit 3d2e717

Please sign in to comment.