Permalink
Browse files

Merge pull request #4 from mgarski/master

Check for data.length > 0 rather than 1
  • Loading branch information...
jondot committed Mar 13, 2012
2 parents 4370d7a + 9b56100 commit a66674c507d377774ce187973962f6484106bb28
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/js/graphene.coffee
View
@@ -209,7 +209,7 @@ class Graphene.GaugeGadgetView extends Backbone.View
render: ()=>
console.log("rendering.")
data = @model.get('data')
- datum = if data && data.length > 1 then data[0] else { ymax: @null_value, ymin: @null_value, points: [[@null_value, 0]] }
+ datum = if data && data.length > 0 then data[0] else { ymax: @null_value, ymin: @null_value, points: [[@null_value, 0]] }
@gauge.redraw(@by_type(datum))

0 comments on commit a66674c

Please sign in to comment.