function MyClick(el) { this.message = 'hello!'; this.click=function(e) { alert(e.data.me.message); } el.click({me:this},this.click); }