lib/iruby/chartkick.rb in iruby-chartkick-0.2.0 vs lib/iruby/chartkick.rb in iruby-chartkick-0.2.1

- old
+ new

@@ -12,9 +12,25 @@ require "iruby/chartkick/geo_chart" require "iruby/chartkick/timeline" module IRuby module Chartkick + class << self + def js_loaded? + @@js_loaded + end + + def mark_js_as_loaded + @@js_loaded = true + end + + def mark_js_as_unloaded + @@js_loaded = false + end + end + + mark_js_as_unloaded + def line_chart(data, **args) LineChart.new(data).plot(**args) end def bar_chart(data, **args)