Minor bug in templates extension

I have discovered a tiny little bug. Using the templates extension will prevent double-click event from being triggered if any of the template HTML has a class attribute defined. Depending on the layout, double-click will still work outside of the text - to its left or right. The work-around is to skip class and define css via style attribute.

//Bad:
{event.text}
//Good:
{event.text}