Hummingbird.EmberChartComponent = Ember.Component.extend({
  tagName: 'canvas',
  setup: false,

  didInsertElement: function(){
    canvas  = this.get('element');
    context = canvas.getContext('2d');
 
    canvas.width  = $(canvas).parent().width();
    canvas.height = $(canvas).parent().height();
 
    data = this.get('data');
    type = this.get('type').charAt(0).toUpperCase() + this.get('type').slice(1);
    if(!type.match(/(Line|Bar|Radar|PolarArea|Pie|Doughnut)/)) type = "Line";
    options = (this.get('options') !== undefined) ? this.get('options') : {};
 
    this.setProperties({
      '_data': data,
      '_type': type,
      '_canvas':  canvas,
      '_context': context,
      '_options': options
    });
    this.chartRender();
  },

  chartRender: function(){
    chart = new Chart(this.get('_context'))[this.get('_type')](this.get('_data'),this.get('_options'));
    this.setProperties({
      '_chart': chart,
      'setup': true
    });
  },
 
  chartUpdate: function(){
    if(this.get('update') === true && this.get('setup') == true){
      this.chartRender();
    }
  }.observes('data', 'options')
 
});
@@ -122,24 +122,28 @@
 tion()%7B%0A    
+var 
 canvas  = th
@@ -159,18 +159,22 @@
 lement')
-;%0A
+,%0A    
     cont
@@ -204,17 +204,16 @@
 ('2d');%0A
- 
 %0A    can
@@ -302,22 +302,25 @@
 ight();%0A
- 
 %0A    
+var 
 data = t
@@ -334,18 +334,22 @@
 ('data')
-;%0A
+,%0A    
     type
@@ -423,16 +423,100 @@
 e(1)
-;
+,%0A        options = (this.get('options') !== undefined) ? this.get('options') : %7B%7D;%0A
 %0A    if
+ 
 (!ty
@@ -572,102 +572,37 @@
 /)) 
-type = %22Line%22;%0A    options = (this.get('options') !== undefined) ? this.get('options') : %7B%7D;%0A 
+%7B%0A      type = %22Line%22;%0A    %7D%0A
 %0A   
@@ -813,16 +813,20 @@
 ()%7B%0A    
+var 
 chart = 
@@ -998,18 +998,17 @@
 );%0A  %7D,%0A
- 
 %0A
+
   chartU
@@ -1084,16 +1084,17 @@
 tup') ==
+=
  true)%7B%0A
@@ -1161,9 +1161,8 @@
 s')%0A
- %0A
 %7D);
+%0A

Fix lint warnings in ember-chart.