mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-02-08 16:34:18 +01:00
follow the official api
This commit is contained in:
parent
6c84fdbd3f
commit
2481681bb1
|
|
@ -79,7 +79,7 @@ AprsMarker.prototype.onAdd = function() {
|
|||
panes.overlayImage.appendChild(div);
|
||||
};
|
||||
|
||||
AprsMarker.prototype.remove = function() {
|
||||
AprsMarker.prototype.onRemove = function() {
|
||||
if (this.div) {
|
||||
this.div.parentNode.removeChild(this.div);
|
||||
this.div = null;
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ PlaneMarker.prototype.onAdd = function() {
|
|||
panes.overlayImage.appendChild(svg);
|
||||
};
|
||||
|
||||
PlaneMarker.prototype.remove = function() {
|
||||
PlaneMarker.prototype.onRemove = function() {
|
||||
if (this.svg) {
|
||||
this.svg.parentNode.removeChild(this.svg);
|
||||
this.svg = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue