瀏覽代碼

JS Runtime: Fix eventloop bug copy from fb1b9a218f4c6ab160571be49ae0b70e9d7b0ecc

Arkadiusz Ryś 4 年之前
父節點
當前提交
73ed4cf312
共有 1 個文件被更改,包括 1 次插入1 次删除
  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() {