Comparing version 1.0.1 to 1.0.2
@@ -32,3 +32,9 @@ 'use strict'; | ||
BProgram.prototype.addBThread = function (name, prio, fun) { | ||
var bound = fun.bind(this); | ||
var _this = this; | ||
var bound = fun.bind({ | ||
lastEvent: function lastEvent() { | ||
return _this.lastEvent; | ||
} | ||
}); | ||
var bt = bound(); // Activate the generator | ||
@@ -51,3 +57,3 @@ var bid = { | ||
BProgram.prototype.event = function (e) { | ||
BProgram.prototype.request = function (e) { | ||
var name = 'request ' + e; | ||
@@ -54,0 +60,0 @@ var bt = /*#__PURE__*/regeneratorRuntime.mark(function bt() { |
{ | ||
"name": "behavioral", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Behavioral Programming for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
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
7948
189