Browse Source

JS Runtime: Fix eventloop bug copy from fb1b9a218f4c6ab160571be49ae0b70e9d7b0ecc

Arkadiusz Ryś 4 years ago
parent
commit
73ed4cf312
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/javascript_sccd_runtime/statecharts_core.js

+ 1 - 1
src/javascript_sccd_runtime/statecharts_core.js

@@ -83,7 +83,7 @@ EventQueue.prototype.add = function(the_event) {
 };
 
 EventQueue.prototype.remove = function(event_id) {
-    this.event_list = this.event_list.filter(function(el) {objectId(el) != event_id}).sort()
+    this.event_list = this.event_list.filter(function(el) {return objectId(el) != event_id;}).sort()
 }
 
 EventQueue.prototype.pop = function() {