changed api "processes" method to "isRunning"

snap7
jmoenig 2021-11-17 15:58:45 +01:00
rodzic 435966266a
commit 84fbdec280
3 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -64,6 +64,7 @@
### 2021-11-17
* gui: set the green-flag button's background color to "active" while a thread is running
* api: changed "processes" method to "isRunning"
### 2021-11-16
* store, gui: updated serializer app tag to v7

Wyświetl plik

@ -33,7 +33,7 @@
<script src="src/store.js?version=2021-11-16"></script>
<script src="src/locale.js?version=2021-11-15"></script>
<script src="src/cloud.js?version=2021-02-04"></script>
<script src="src/api.js?version=2021-11-16"></script>
<script src="src/api.js?version=2021-11-17"></script>
<script src="src/sha512.js?version=2019-06-27"></script>
<script src="src/FileSaver.min.js?version=2019-06-27"></script>
<script>

Wyświetl plik

@ -46,7 +46,7 @@ detect*/
// Global stuff ////////////////////////////////////////////////////////
modules.api = '2021-November-16';
modules.api = '2021-November-17';
// IDE_Morph external communication API - experimental
/*
@ -87,9 +87,9 @@ IDE_Morph.prototype.switchTo = function (sceneName) {
this.switchToScene(scene);
};
IDE_Morph.prototype.processes = function () {
// return the number of currently running scripts in the active scene
return this.stage.threads.processes.length;
IDE_Morph.prototype.isRunning = function () {
// return true if the active scene is currently running a script
return this.stage.threads.processes.length > 0;
};
IDE_Morph.prototype.stop = function () {