Browse Source

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

Shaddock Heath 10 years ago
parent
commit
7fc2c72731
1 changed files with 2 additions and 2 deletions
  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.