[OpenLayers-Trac] Re: [OpenLayers] #3599: event.layerX and event.layerY are deprecated in WebKit

OpenLayers trac-20090302 at openlayers.org
Sun Dec 18 14:13:25 EST 2011


#3599: event.layerX and event.layerY are deprecated in WebKit
----------------------+-----------------------------------------------------
  Reporter:  rave     |       Owner:              
      Type:  bug      |      Status:  closed      
  Priority:  minor    |   Milestone:  2.12 Release
 Component:  general  |     Version:  2.11        
Resolution:  invalid  |    Keywords:              
     State:           |  
----------------------+-----------------------------------------------------

Comment(by wezo):

 I have also experienced this phenomenon in some of the OpenLayers examples
 as well.
 After little investigation, I noticed that the warning messages appear in
 the Hover/Click handler when the OpenLayers.Util.extend() method is called
 on the passed event parameter. The event.layerX and event.layerY are still
 there when Chrome creates the event object and when this object is cloned
 into another object then a value is set for event.layerX and event.layerY
 in the OpenLayers.Util.extend() function. Therefore a warning message is
 triggered.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3599#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list