Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(element) {
super(element);
this.manage(
on(element, 'click', event => {
this.toggle(event);
})
);
const targetElem = element.ownerDocument.querySelector(
this.options.selectorTarget
);
if (targetElem) {
this.state = InlineLoading.states.ACTIVE;
this.target = InlineLoading.create(targetElem).setState(this.state);
}
}