winston / google_visualr

A Ruby Gem for the Google Visualization API. Write Ruby code. Generate Javascript. Display a Google Chart.

Home Page:http://googlevisualr.heroku.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

listeners should be added before calling draw()

nicholaide opened this issue · comments

As per Pull Request 39, the gem now adds the ability to have listeners. The issue is that 'ready' listeners do not fire after the first draw() event (subsequent redraws work).

The solution is to add listeners before the draw call, unless I am missing something?

This is indeed a bug. In my production setup I had to add a monkey-patch to address this issue. I have submitted a pull request that addresses the issue.

I'll merge in the change once we have a green build. =) Thank you!

Merged in the fix. Thank you.