Add comment explaining weird map behavior

This commit is contained in:
Paulus Schoutsen 2016-05-28 11:14:50 -07:00
parent 96be0e5b8b
commit d7993a8899

View File

@ -2,6 +2,13 @@ import Polymer from '../../polymer';
require('../../components/ha-label-badge'); 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({ export default new Polymer({
is: 'ha-entity-marker', is: 'ha-entity-marker',