Skip to content
Permalink
Browse files

Remove 'on' prefix from event handler macros

  • Loading branch information...
pngai committed Mar 12, 2019
1 parent 7bdfad9 commit b17343a0ffbae0621dcedefb0258a40860aeb8d5
@@ -56,7 +56,7 @@ impl PermissionStatusMethods for PermissionStatus {
}

// https://w3c.github.io/permissions/#dom-permissionstatus-onchange
event_handler!(onchange, GetOnchange, SetOnchange);
event_handler!(change, GetOnchange, SetOnchange);
}

impl Display for PermissionName {
@@ -148,5 +148,5 @@ impl TextTrackMethods for TextTrack {
}

// https://html.spec.whatwg.org/multipage/#handler-texttrack-oncuechange
event_handler!(oncuechange, GetOncuechange, SetOncuechange);
event_handler!(cuechange, GetOncuechange, SetOncuechange);
}
@@ -104,8 +104,8 @@ impl TextTrackCueMethods for TextTrackCue {
}

// https://html.spec.whatwg.org/multipage/#handler-texttrackcue-onenter
event_handler!(onenter, GetOnenter, SetOnenter);
event_handler!(enter, GetOnenter, SetOnenter);

// https://html.spec.whatwg.org/multipage/#handler-texttrackcue-onexit
event_handler!(onexit, GetOnexit, SetOnexit);
event_handler!(exit, GetOnexit, SetOnexit);
}
@@ -130,11 +130,11 @@ impl TextTrackListMethods for TextTrackList {
}

// https://html.spec.whatwg.org/multipage/#handler-texttracklist-onchange
event_handler!(onchange, GetOnchange, SetOnchange);
event_handler!(change, GetOnchange, SetOnchange);

// https://html.spec.whatwg.org/multipage/#handler-texttracklist-onaddtrack
event_handler!(onaddtrack, GetOnaddtrack, SetOnaddtrack);
event_handler!(addtrack, GetOnaddtrack, SetOnaddtrack);

// https://html.spec.whatwg.org/multipage/#handler-texttracklist-onremovetrack
event_handler!(onremovetrack, GetOnremovetrack, SetOnremovetrack);
event_handler!(removetrack, GetOnremovetrack, SetOnremovetrack);
}

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit b17343a

Please sign in to comment.
You can’t perform that action at this time.