mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Add comment explaining weird map behavior
This commit is contained in:
parent
96be0e5b8b
commit
d7993a8899
@ -2,6 +2,13 @@ import Polymer from '../../polymer';
|
||||
|
||||
require('../../components/ha-label-badge');
|
||||
|
||||
/*
|
||||
Leaflet clones this element before adding it to the map. This messes up
|
||||
our Poylmer object and we lose the reference to the `hass` object.
|
||||
|
||||
That's why we refer here to window.hass instead of the hass property.
|
||||
*/
|
||||
|
||||
export default new Polymer({
|
||||
is: 'ha-entity-marker',
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user