code style

This commit is contained in:
David Négrier 2020-08-30 17:40:04 +02:00
parent 01319b50ca
commit a128ff117b

View File

@ -75,7 +75,7 @@ export class GameMap {
}
private trigger(propName: string, oldValue: string | number | boolean | undefined, newValue: string | number | boolean | undefined) {
let callbacksArray = this.callbacks.get(propName);
const callbacksArray = this.callbacks.get(propName);
if (callbacksArray !== undefined) {
for (const callback of callbacksArray) {
callback(newValue, oldValue);