def decorate_set_on_listener(event_name, params):

    def add_annotation(function):
        function._event_listener = {}
        function._event_listener['eventName'] = event_name
        function._event_listener['prototype'] = params
        return function

    return add_annotation
private decorator for use in the editor
dataset/ETHPy150Open dddomodossola/remi/remi/gui.py/decorate_set_on_listener