Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/05/2009, 11:44
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 17 años, 4 meses
Puntos: 101
Problema con detachEvent

Hola,
Tengo esta funcion para borrar eventos, en FF anda bien pero en IE da error:
Código javascript:
Ver original
  1. removeEvent=function(evType,fn){
  2.             if(this.removeEventListener){
  3.                 this.removeEventListener(evType, fn, false);
  4.             }else if (this.detachEvent){
  5.                 this.detachEvent("on"+evType, this[fn+evType+'n']);
  6.                 this[fn+evType+'n']=null;
  7.             }else{
  8.                 this['on'+evType]=function(){};
  9.             }
  10.         };
Proque da error
Gracias
Salu2
__________________
Half Music - www.halfmusic.com