Files
pole-book/server/node_modules/media-chrome/dist/utils/events.js

25 lines
523 B
JavaScript

class InvokeEvent extends Event {
/**
* @param init - The event options.
*/
constructor({ action = "auto", relatedTarget, ...options }) {
super("invoke", options);
this.action = action;
this.relatedTarget = relatedTarget;
}
}
class ToggleEvent extends Event {
/**
* @param init - The event options.
*/
constructor({ newState, oldState, ...options }) {
super("toggle", options);
this.newState = newState;
this.oldState = oldState;
}
}
export {
InvokeEvent,
ToggleEvent
};