OpenLayers OpenLayers

Ticket #1502: patch-1502-r6825-A0.diff

File patch-1502-r6825-A0.diff, 0.5 kB (added by pgiraud, 5 months ago)
  • lib/OpenLayers/Events.js

    old new  
    537537                obj = this.object; 
    538538            } 
    539539            var listeners = this.listeners[type]; 
    540             if (listeners != null) { 
     540            if (listeners != null && 
     541                typeof listeners == 'object' && listeners.constructor == Array) { 
    541542                listeners.push( {obj: obj, func: func} ); 
    542543            } 
    543544        }