app/assets/javascripts/plasticine/base.coffee in plasticine-1.1.1 vs app/assets/javascripts/plasticine/base.coffee in plasticine-1.2.0
- old
+ new
@@ -4,9 +4,10 @@
if @d3IsLoaded()
$('div.plasticine').each (i, visual) =>
switch $(visual).data('visual')
when 'column' then @visuals.push new PlasticineColumn $(visual)
+ when 'line' then @visuals.push new PlasticineLine $(visual)
d3IsLoaded: () -> if d3? then true else false
$ -> new Plasticine