@momo2555/koppeliajs 0.0.133 → 0.0.135
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.
package/dist/scripts/console.js
CHANGED
|
@@ -185,7 +185,6 @@ export class Console {
|
|
|
185
185
|
}
|
|
186
186
|
/* Handle device event */
|
|
187
187
|
else if (type == MessageType.DEVICE_EVENT) {
|
|
188
|
-
console.log("receive device event ! handlers : " + this._deviceEventHandlers);
|
|
189
188
|
this._execDeviceEventHandlers(request.header.device, request.header.from_addr, request.event);
|
|
190
189
|
}
|
|
191
190
|
/* Handle device data */
|
|
@@ -228,6 +227,6 @@ export class Console {
|
|
|
228
227
|
this._deviceDataHandlers = [];
|
|
229
228
|
this._dataExchangeHandlers = [];
|
|
230
229
|
this._anyRequestHandlers = [];
|
|
231
|
-
console.log("destroy events event handlers
|
|
230
|
+
console.log("destroy events event handlers");
|
|
232
231
|
}
|
|
233
232
|
}
|
package/dist/scripts/stage.js
CHANGED
|
@@ -20,8 +20,6 @@ export class Stage {
|
|
|
20
20
|
this._console.sendMessage(req);
|
|
21
21
|
}
|
|
22
22
|
goto(stage) {
|
|
23
|
-
// Destroy all events before changing stage
|
|
24
|
-
this._console.destroyEvents();
|
|
25
23
|
let req = new Message();
|
|
26
24
|
req.setRequest("changeStage");
|
|
27
25
|
req.addParam("stage", stage);
|
|
@@ -34,6 +32,8 @@ export class Stage {
|
|
|
34
32
|
});
|
|
35
33
|
}
|
|
36
34
|
_onReceiveStage(from, receivedStage) {
|
|
35
|
+
// Destroy all events before changing stage
|
|
36
|
+
this._console.destroyEvents();
|
|
37
37
|
let path = "/game/" + get(routeType) + "/" + receivedStage;
|
|
38
38
|
goto(path);
|
|
39
39
|
}
|