click.js
function click(target, handler) {
    target.addEventListener("click", function(evt) {
        evt.stopPropagation();
        evt.preventDefault();
        handler.call(this);
    });
}
function click(target, handler) {
    target.addEventListener("click", function(evt) {
        evt.stopPropagation();
        evt.preventDefault();
        handler.call(this);
    });
}
function click ( target , handler ) { target . addEventListener ( "click" , function ( evt ) { evt . stopPropagation ( ) ; evt . preventDefault ( ) ; handler . call ( this ) ; } ) ; }
Attach click event handler.
@param {EventTarget} target
@param {function} handler
Attach click event handler .