From db013ab8a251fd9b4e804cdde0a192037eec5f4e Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Thu, 22 Jun 2023 17:57:08 +0200 Subject: [PATCH] fix add_listener --- js/lib/jupyter-aladin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/jupyter-aladin.js b/js/lib/jupyter-aladin.js index cfdba384..e5e8c14d 100644 --- a/js/lib/jupyter-aladin.js +++ b/js/lib/jupyter-aladin.js @@ -225,7 +225,7 @@ export class AladinView extends DOMWidgetView { this.listenTo(this.model, 'change:listener_flag', () => { let type= this.model.get('listener_type'); - this.al.on(type, function(object) { + this.al.on(type, (object) => { if (type==='select') { let sources = object; // first, deselect previously selected sources