Merge pull request #759 from thecodingmachine/jitsiConfig
Fix last properties changed after trigger change position
This commit is contained in:
commit
b5514e6e48
1 changed files with 1 additions and 2 deletions
|
@ -29,6 +29,7 @@ export class GameMap {
|
||||||
|
|
||||||
const newProps = this.getProperties(key);
|
const newProps = this.getProperties(key);
|
||||||
const oldProps = this.lastProperties;
|
const oldProps = this.lastProperties;
|
||||||
|
this.lastProperties = newProps;
|
||||||
|
|
||||||
// Let's compare the 2 maps:
|
// Let's compare the 2 maps:
|
||||||
// First new properties vs oldProperties
|
// First new properties vs oldProperties
|
||||||
|
@ -45,8 +46,6 @@ export class GameMap {
|
||||||
this.trigger(oldPropName, oldPropValue, undefined, newProps);
|
this.trigger(oldPropName, oldPropValue, undefined, newProps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.lastProperties = newProps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getCurrentProperties(): Map<string, string|boolean|number> {
|
public getCurrentProperties(): Map<string, string|boolean|number> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue