Comparing version 0.2.2 to 0.2.3-1
@@ -211,2 +211,10 @@ // Generated by CoffeeScript 1.4.0 | ||
Timer.prototype.clearAll = function() { | ||
this.tasks.resetCursor(); | ||
while (this.tasks.next()) { | ||
this.clear(this.tasks.current); | ||
} | ||
return this.tasks = new LinkedList; | ||
}; | ||
Timer.prototype.pause = function() { | ||
@@ -213,0 +221,0 @@ this.tasks.resetCursor(); |
{ | ||
"name": "timer-shim", | ||
"version": "0.2.2", | ||
"version": "0.2.3-1", | ||
"description": "Test-friendly timer function replacements.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -80,2 +80,6 @@ | ||
`timer.clearAll` | ||
Clears all registered timeout handles. Effectively cancels all scheduled timeout and | ||
intervals. Useful for reseting the timer in tests. | ||
`timer.t` | ||
@@ -82,0 +86,0 @@ `timer.to` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29315
269
154