Utilities to implement standard event patterns in LaxarJS widgets