rem: var _47=[]; var _48={}; 
add: var _51=[]; var _52={}; 
context: fleegix.event=new function(){var _47=[];var _48={};this.listen=function(){var _49=arguments[0];var _4a=arguments[1];var _4b=_49[_4a]?_49[_4a].listenReg:null;if(!_4b){_4b={};_4b.orig={};_4b.orig.obj=_49,_4b.orig.methName=_4a;if(_49[_4a]){_4b.orig.methCode=eval(_49[_4a].valueOf());}_4b.after=[];_49[_4a]=function(){var _4c=[];for(var i=0;i<arguments.length;i++){_4c.push(arguments[i]);}fleegix.event.exec(_49[_4a].listenReg,_4c);};_49[_4a].listenReg=_4b;_47.push(_49[_4a].listenReg);}if(typeof arguments[2]=="function"){_4b.after.push(arguments[2]);}else{_4b.after.push([arguments[2],arguments[3]]);}_49[_4a].listenReg=_4b;};this.exec=function(reg,_4f){if(reg.orig.methCode){reg.orig.methCode.apply(reg.orig.obj,_4f);}if(reg.orig.methName.match(/onclick|ondblclick|onmouseup|onmousedown|onmouseover|onmouseout|onmousemove|onkeyup/)){_4f[0]=_4f[0]||window.event;}for(var i=0;i<reg.after.length;i++){var ex=reg.after[i];if(ex.length==0){var _52=ex;_52(_4f);}else{execObj=ex[0];execMethod=ex[1];execObj[execMethod].apply(execObj,_4f);}}};this.unlisten=function(){var _53=arguments[0];var _54=arguments[1];var _55=_53[_54]?_53[_54].listenReg:null;var _56=null;if(!_55){return false;}for(var i=0;i<_55.after.length;i++){var ex=_55.after[i];if(typeof arguments[2]=="function"){if(ex==arguments[2]){_55.after.splice(i,1);}}else{if(ex[0]==arguments[2]&&ex[1]==arguments[3]){_55.after.splice(i,1);}}}_53[_54].listenReg=_55;};this.flush=function(){for(var i=0;i<_47.length;i++){var reg=_47[i];removeObj=reg.orig.obj;removeMethod=reg.orig.methName;removeObj[removeMethod]=null;}};this.subscribe=function(_5b,obj,_5d){if(!obj){return;}if(!_48[_5b]){_48[_5b]={};_48[_5b].audience=[];}else{this.unsubscribe(_5b,obj);}_48[_5b].audience.push([obj,_5d]);};this.unsubscribe=function(_5e,obj){if(!obj){_48[_5e]=null;}else{if(_48[_5e]){var aud=_48[_5e].audience;for(var i=0;i<aud.length;i++){if(aud[i][0]==obj){aud.splice(i,1);}}}}};this.publish=function(pub,_63){if(_48[pub]){aud=_48[pub].audience;for(var i=0;i<aud.length;i++){var _65=aud[i][0];var _66=aud[i][1];_65[_66](_63);}}};this.getSrcElementId=function(e){var ret=null;if(e.srcElement){ret=e.srcElement;}else{if(e.target){ret=e.target;}}if(typeof ret.id=="undefined"){return null;}else{while(!ret.id||ret.nodeType==3){if(ret.parentNode){ret=ret.parentNode;}else{return null;}}}return ret.id;};};
meta: 10428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10428/e022a81562477ed98b0c5e9980772bddbc8f5488/fleegix.js/buggy/fleegix.js