await-notify
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,3 @@ function Subject() { | ||
Subject.prototype.wait = function (timeout) { | ||
var self = this; | ||
var waiter = {}; | ||
@@ -21,5 +22,5 @@ this.waiters.push(waiter); | ||
if (!noRemove) { | ||
var pos = this.waiters.indexOf(waiter); | ||
var pos = self.waiters.indexOf(waiter); | ||
if (pos > -1) { | ||
this.waiters.splice(pos, 1); | ||
self.waiters.splice(pos, 1); | ||
} | ||
@@ -26,0 +27,0 @@ } |
{ | ||
"name": "await-notify", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Java like wait and notify for JavaScript ES7 async/await", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4137
47