mr-crocs-adventures/tilorswift/js/events/TilorswiftFieldEnteredEvent.js

18 lines
354 B
JavaScript
Raw Permalink Normal View History

2020-01-30 20:51:29 +01:00
import TilorswiftEvent from "./TilorswiftEvent.js";
export default class TilorswiftFieldEnteredEvent extends CustomEvent
{
constructor(field) {
super(
TilorswiftEvent.FIELD_ENTERED,
{
detail: {field: field}
}
);
}
getField()
{
return this.detail.field;
}
}