Hi, have tried to use this my own function on FBJS:
function addEvent(event,fun,pars){
pars.event=event;
pars.listen=function(){ fun(this, pars);return false; };
this.addEventListener(event,pars.listen,false);
}
but dont work...if call:
obj=document.getElementById("id_element");
obj.addEvent(....);
Firebug return this error:am123456789_obj.addEvent is not a function
Any idea to resolve?