@momo2555/koppeliajs 0.0.132 → 0.0.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,7 +81,6 @@ export class Koppelia {
81
81
  * @param stageName
82
82
  */
83
83
  goto(stageName) {
84
- this._console.destroyEvents();
85
84
  this._stage.goto(stageName);
86
85
  }
87
86
  fixMediaUrl(mediaUrl) {
@@ -32,6 +32,8 @@ export class Stage {
32
32
  });
33
33
  }
34
34
  _onReceiveStage(from, receivedStage) {
35
+ // Destroy all events before changing stage
36
+ this._console.destroyEvents();
35
37
  let path = "/game/" + get(routeType) + "/" + receivedStage;
36
38
  goto(path);
37
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo2555/koppeliajs",
3
- "version": "0.0.132",
3
+ "version": "0.0.134",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",