src/heatmap.js
function isClickTarget(element) {
        return element.hasAttribute('ceddl-click') ||
               (element.nodeType === 1 && element.tagName.toUpperCase() === 'BUTTON') ||
               (element.nodeType === 1 && element.tagName.toUpperCase() === 'A');
    }
function isClickTarget(element) {
        return element.hasAttribute('ceddl-click') ||
               (element.nodeType === 1 && element.tagName.toUpperCase() === 'BUTTON') ||
               (element.nodeType === 1 && element.tagName.toUpperCase() === 'A');
    }
function isClickTarget ( element ) { return element . hasAttribute ( 'ceddl-click' ) || ( element . nodeType === 1 && element . tagName . toUpperCase ( ) === 'BUTTON' ) || ( element . nodeType === 1 && element . tagName . toUpperCase ( ) === 'A' ) ; }
Determines if the element is a valid element to stop the delegation loop and
emit the coordinates dataset.
Determines if the element is a valid element to stop the delegation loop and emit the coordinates dataset .