timeunit
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "timeunit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Port of Doug Lea's TimeUnit Java class to JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "lib/timeunit.js", |
@@ -68,8 +68,7 @@ // Generated by CoffeeScript 1.6.3 | ||
var ms; | ||
if (timeout > 0) { | ||
ms = this.toMillis(timeout); | ||
setTimeout(done, ms); | ||
} else { | ||
done(); | ||
if (timeout < 0) { | ||
timeout = 0; | ||
} | ||
ms = this.toMillis(timeout); | ||
setTimeout(done, ms); | ||
return null; | ||
@@ -76,0 +75,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["TimeUnit", "time conversion", "Doug Lea"], | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Jason Walton (https://github.com/jwalton)", | ||
@@ -8,0 +8,0 @@ "contributors": [ |
@@ -7,2 +7,3 @@ TimeUnit js | ||
[backport-util-concurrent](http://backport-jsr166.sourceforge.net/) version. | ||
This class is the basis for `java.util.concurrent.TimeUnit` from JavaSE. | ||
@@ -9,0 +10,0 @@ Ported by Jason Walton, released under the |
Sorry, the diff of this file is not supported yet
12688
11
72
111