Skip to content

events: expose Event statics

Expose Event statics (Event.NONE etc). See Event phase constants.

  • Chrome, Firefox, Edge, and Safari implement these.
  • IE11 implements all of these except NONE (for some reason).

I think these are required on the event interface (as constants).

They are as-enumerable as they are in browsers though I did not add a specific test for enumerability (I can if people feel strongly about it)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading