def getEventsSunk(element):
    from __pyjamas__ import INT
    return INT(JS("@{{element}}['__eventBits'] ? @{{element}}['__eventBits'] : 0"))
Return which events are currently "sunk" for a given DOM node.  See
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/DOM.browser.py/getEventsSunk