소스 검색

fixed an issue with processing the setImmediate calls not actually running.

Shaddock Heath 10 년 전
부모
커밋
7fc2c72731
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Resources/CoreData/AtomicModules/AtomicEventLoop.js

+ 2 - 2
Resources/CoreData/AtomicModules/AtomicEventLoop.js

@@ -485,8 +485,8 @@ Atomic.engine.subscribeToEvent('Update', throttleProcessTimers(100));
 
 // Hook into the postUpdate event of the engine and process all the setImmediate calls.  These should
 // really process once the current update loop is completed.
-Atomic.engine.subscribeToEvent('PostUpdate', function () {
-    EventLoop.processImmediates;
+Atomic.engine.subscribeToEvent('PostUpdate', function (eventData) {
+    EventLoop.processImmediates();
 });
 
 // Load up the global methods .  This module doesn't export anything, it just sets up the global methods.