diff --git a/src/js/gui/Button/ShareView.js b/src/js/gui/Button/ShareView.js index a8347fb9..90ef7e77 100644 --- a/src/js/gui/Button/ShareView.js +++ b/src/js/gui/Button/ShareView.js @@ -133,7 +133,5 @@ import { Utils } from "../../Utils"; }, tooltip: {content: 'You can share/export your view into many ways', position: {direction: 'top'}}, }, aladin); - - self = this; } } diff --git a/src/js/gui/Input/LayerSelector.js b/src/js/gui/Input/LayerSelector.js index d983feac..5a5a1d8e 100644 --- a/src/js/gui/Input/LayerSelector.js +++ b/src/js/gui/Input/LayerSelector.js @@ -80,9 +80,7 @@ export class LayerSelector extends Input { ...options }) - self = this; - - LayerSelector.objects.push(self); + LayerSelector.objects.push(this); } };