Homec4science

Make it much easier to add one-off event listeners

Authored by epriestley <git@epriestley.com> on May 23 2014, 00:19.

Description

Make it much easier to add one-off event listeners

Summary:
Ref T4657. Right now, you have to muck with events.listeners to install listeners. Instead, automatically install all subclasses of AutoEventListener.

Primarily, this makes it easier to resolve requests with "drop this file in src/extensions/, no warranty", which seems to have worked well so far in resolving things like custom remarkup rules, etc.

Test Plan:

  • Added such a listener, had it autoregister.
  • Clicked around and saw the effects of normal listeners.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4657

Differential Revision: https://secure.phabricator.com/D9262

Details

Committed
epriestley <git@epriestley.com>May 23 2014, 00:19
Pushed
aubortJan 31 2017, 17:16
Parents
rPHc39f302c048a: Project - use hashtag as a way to access project profile in URI, e.g.
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH27a369d15acc: Make it much easier to add one-off event listeners (authored by epriestley <git@epriestley.com>).May 23 2014, 00:19