add explicit "setRef" function to EventsMixin