code: def get_event(self, ref):
          
          # is this reference one which has been setup?
          if ref in self._refs:
              return self._refs[ref].get_callback(ref)
          else:
              return None
docs: Returns the event callback for a ref (reference)