Fix typo in dataloading event names

This commit is contained in:
Yohan Boniface 2023-07-04 15:54:12 +02:00
parent c2d8e93e8e
commit e1f34e20ff

View file

@ -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