@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
12 lines (11 loc) • 342 B
JavaScript
/** A custom event dispatched by {@link ESLMediaQuery} instances */
export class ESLMediaChangeEvent extends Event {
constructor(matches) {
super('change');
this.matches = matches;
}
/** Returns serialized value of the current {@link ESLMediaQuery} */
get media() {
return String(this.target);
}
}