Snippet event

When initializing, the Client-Side Framework (CSF) converts all properties in the namespace object snippetEvent into DOM event listeners on the component element (this.elt).

Events registered in snippetEvent are automatically removed by the CSF when the component is destroyed.

Example

Listen for click events:
this.snippetEvent.click = function(event) {
  alert('mouse click');
}