highlightHero
is being called successfully after the change:isHero
event and applying the CSS class which is reflected in the DOM. However, then the change
event is fired, causing the View to re-render without the CSS applied, and it's too quick to notice. If you add a syntax error, the change
event won't be called since the application crashed.
To resolve this, I suggest calling highlightHero
in your render function and deleting the change:isHero
event.