mr-crocs-adventures/tilorswift/js/events/TilorswiftFieldEnteredEvent.js
2020-01-30 20:51:29 +01:00

18 lines
354 B
JavaScript

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;
}
}