[legacy] Workaround to click event issue.

closes #44
The issue was that all the scope's attributes where undefined when calling the user's defined event handler.