Skip to content

Commit

Permalink
Merge pull request #38 from wwilsman/master
Browse files Browse the repository at this point in the history
Add callback options as Ember actions
  • Loading branch information
Glavin001 committed Oct 20, 2015
2 parents 7e931a6 + 1d85e32 commit 05b41cc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions addon/components/c3-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,20 @@ export default Ember.Component.extend({
'color',
'transition'
]);

Ember.A([
'oninit',
'onrendered',
'onmouseover',
'onmouseout',
'onresize',
'onresized'
]).forEach(function(eventname) {
c[eventname] = function() {
self.sendAction(eventname, this);
};
});

c.bindto = self.$().get(0);
return c;
}),
Expand Down

0 comments on commit 05b41cc

Please sign in to comment.