timers-browserify
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,8 @@ # Change Log | ||
## 2.0.1 - 2016-06-21 | ||
### Fixed | ||
* `clearTimeout` and `clearInterval` no longer throws when passed null or | ||
undefined instead of the timeout token. | ||
## 2.0.0 - 2016-03-28 | ||
@@ -7,0 +13,0 @@ |
@@ -12,3 +12,7 @@ var apply = Function.prototype.apply; | ||
exports.clearTimeout = | ||
exports.clearInterval = function(timeout) { timeout.close(); }; | ||
exports.clearInterval = function(timeout) { | ||
if (timeout) { | ||
timeout.close(); | ||
} | ||
}; | ||
@@ -15,0 +19,0 @@ function Timeout(id, clearFn) { |
@@ -5,3 +5,3 @@ { | ||
"description": "timers module for browserify", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"homepage": "https://github.com/jryans/timers-browserify", | ||
@@ -14,2 +14,3 @@ "bugs": "https://github.com/jryans/timers-browserify/issues", | ||
"contributors": [ | ||
"Colton Brown <coltonTB@me.com>", | ||
"Guy Bedford <guybedford@gmail.com>", | ||
@@ -16,0 +17,0 @@ "Ionut-Cristian Florescu <ionut.florescu@gmail.com>", |
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
20693
278