text: var EventDispatcher=function(e){var t=e;return{dispatch:function(e,n){if(document.createEvent){var i=document.createEvent(typeof n==="undefined"?"UIEvents":n);i.initEvent(e,true,true);t.dispatchEvent(i)}else if(document.createEventObject){t.fireEvent("on"+e)}else if(typeof t["on"+e]=="function"){t["on"+e]()}return this}}};