I found a bug in widget.coffee today. To fix the issue, I need the conversion between HTML 5 data-attribute
name and javascript function name, e.g. conversion between data-action-handler
and actionHandler
.
By taking jQuery implementation as reference, I come up 2 utility functions for the conversion:
|
|
Here is a more solid implementation based on previous one.
|
|