From e1f34e20fffa61d5e234123d152f7ea571f10550 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 4 Jul 2023 15:54:12 +0200 Subject: [PATCH] Fix typo in dataloading event names --- umap/static/umap/js/umap.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 7733e29d..451c4255 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -91,12 +91,8 @@ L.U.Map.include({ this.ui = new L.U.UI(this._container) this.xhr = new L.U.Xhr(this.ui) - this.xhr.on('dataloding', function (e) { - this.fire('dataloding', e) - }) - this.xhr.on('datalaod', function (e) { - this.fire('datalaod', e) - }) + this.xhr.on('dataloading', (e) => this.fire('dataloading', e)) + this.xhr.on('dataload', (e) => this.fire('dataload', e)) this.initLoader() this.name = this.options.name