Google.Maps.Event Settings - Va vs. Xa

I use an event listener related to a variable relatedTargetfor Firefox or a variable toElementfor Chrome and IE. But since I did this part of the code, the parent variable has changed. Why?

For example, until today I needed to use evt.Va.toElementto refer to a variable toElement, but from today morning I need to use evt.Xa.toElement. Why has this changed?

google.maps.event.addListener(polygon,"mouseout",function(evt){ // Mouseout
  if(evt.Xa.toElement){ // For Chrome and IE
    if(evt.Xa.toElement.id != "idName"){
     // Do something
    }
  } else {
    // Do something else
  }
}

Is there a way to use toElementor relatedTargetand be sure that it will always work?

0
source share
1 answer

evt.Xa , API ( ). .

+1

Source: https://habr.com/ru/post/1533838/


All Articles