Skip to content

Macroize event handler getters and setters #3755

Closed

Description

@jdm

Things like Document::Get/SetOnload and all of the other handlers (such as on EventTarget, HTMLBodyElement, Window, etc.) are all copy-pasted and should be simple to turn into macros.

Activity

  1. added
    A-content/dom
    E-less-complex
    I-cleanup
    on Oct 21, 2014
  2. tetsuharuohzeki commented on Oct 22, 2014

    @tetsuharuohzeki
    Contributor

    We would need concat_idents! to define a getter & setter function name, but concat_idents! cannot use to define a function name ( rust-lang/rust#12249 ) now.

  3. tetsuharuohzeki commented on Oct 22, 2014

    @tetsuharuohzeki
    Contributor

    But if we take all function names lik event_handler!(click, EventHandlerNonNull, GetOnclick, SetOnclick), we would fix this now (Of course we should leave FIXME).

  4. added a commit that references this issue on Oct 23, 2014
    470d27a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

A-content/domE-less-complexI-cleanup

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions