Add more typecast for typescript

This commit is contained in:
Frederic Junod
2019-09-27 13:09:12 +02:00
parent 701dc3b54a
commit 0e402073da
5 changed files with 12 additions and 6 deletions

View File

@@ -375,9 +375,9 @@ class PluggableMap extends BaseObject {
* @param {import("./control/Control.js").default} control Control.
* @this {PluggableMap}
*/
(function(control) {
function(control) {
control.setMap(this);
}).bind(this));
}.bind(this));
this.controls.addEventListener(CollectionEventType.ADD,
/**
@@ -400,9 +400,9 @@ class PluggableMap extends BaseObject {
* @param {import("./interaction/Interaction.js").default} interaction Interaction.
* @this {PluggableMap}
*/
(function(interaction) {
function(interaction) {
interaction.setMap(this);
}).bind(this));
}.bind(this));
this.interactions.addEventListener(CollectionEventType.ADD,
/**