UNPKG

getaddress-autocomplete-modal

Version:

GetAddress.io - Autocomplete modal plug-in

18 lines 600 B
import { Debug } from "./Debug.js"; import Storage from "./Storage.js"; export default class ClearPreviousButton { constructor(attributeValues) { this.attributeValues = attributeValues; this.button = document.createElement('BUTTON'); this.element = this.button; this.build = () => { this.button.addEventListener('click', this.handleClick); }; this.handleClick = (e) => { Debug.Log(this.attributeValues, e); Storage.clear(); }; this.build(); } } //# sourceMappingURL=ClearPreviousButton.js.map