event-target-shim
event-target-shim copied to clipboard
Feature request: make defineEventAttribute variadic
right now, one has to do:
defineEventAttribute(Foo, "bar");
defineEventAttribute(Foo, "baz");
// or
["bar", "baz"].forEach( name => defineEventAttribute(Foo, name));
Which is kinda ugly...
What would be nice is a variadic function:
defineEventAttribute(Foo, "bar", "baz" /*, ...and so on*/);
// or
const attributes = ["bar", "baz"]
defineEventAttribute(Foo, ...attributes);
Thank you for this issue.
Nice idea! It would be useful.