app/assets/javascripts/workbench/help.js
Function attachMouseEvent
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attachMouseEvent (bubbleElement) {
bubbleElement.addEventListener('mouseenter', event => {
const elementLegend = document.querySelector('.help-legend')
const element = event.target
const position = this.getOffset(element)