OpenLayers OpenLayers

Ticket #880: event.patch

File event.patch, 0.6 kB (added by crschmidt, 1 year ago)
  • lib/OpenLayers/Events.js

    old new  
    324324/* prevent memory leaks in IE */ 
    325325OpenLayers.Event.observe(window, 'unload', OpenLayers.Event.unloadCache, false); 
    326326 
    327 if (window.Event) { 
    328   OpenLayers.Util.extend(window.Event, OpenLayers.Event); 
    329 } else
     327// FIXME: Remove this in 3.0. In 3.0, Event.stop will no longer be provided 
     328// by OpenLayers. 
     329if (!window.Event)
    330330  var Event = OpenLayers.Event; 
    331331} 
    332332