Permalink
Browse files

initialize Clock statics properly.

  • Loading branch information...
1 parent 6c9eeba commit 149d72df3c5ccdc697bc17f0ec22022a769adbca AntiXian666 committed Sep 13, 2007
Showing with 13 additions and 14 deletions.
  1. +13 −14 lib/jsUnitMockTimeout.js
View
@@ -12,20 +12,19 @@
* @class
* Clock stores callbacks and executes them when it is told to simulate the advancing of time
*/
-function Clock() {
- /**
- * The number of timeouts executed
- */
- Clock.timeoutsMade = 0;
- /**
- * Hash of milliseconds to scheduled functions
- */
- Clock.scheduledFunctions = {};
- /**
- * The current milliseconds
- */
- Clock.nowMillis = 0;
-}
+function Clock() { }
+/**
+ * The number of timeouts executed
+ */
+Clock.timeoutsMade = 0;
+/**
+ * Hash of milliseconds to scheduled functions
+ */
+Clock.scheduledFunctions = {};
+/**
+ * The current milliseconds
+ */
+Clock.nowMillis = 0;
/**
* Resets the clock - clears the scheduledFunctions, the current milliseconds, and the timeouts made count

0 comments on commit 149d72d

Please sign in to comment.