Fix StdEventableObject in lib/std.js

This commit is contained in:
Namhyeon Go 2022-09-19 05:16:05 +09:00
parent 07ee4298f7
commit 92c57c3e94

View File

@ -384,7 +384,7 @@ function StdEventableObject() {
if (typeof listener === "function") {
for (var i = 0; i < this.__events__.length; i++) {
var e = this.__events__[i];
if (e.type == event.type && typeof(e.listener) === "function" && e.listener.toString() == listener.toString()) {
if (e.type == type && typeof(e.listener) === "function" && e.listener.toString() == listener.toString()) {
delete this.__events__[i];
}
}
@ -455,7 +455,7 @@ global.splitLn = splitLn;
global.addslashes = addslashes;
global.AsyncFunction = AsyncFunction;
exports.VERSIONINFO = "Standard Library (std.js) version 0.7.2";
exports.VERSIONINFO = "Standard Library (std.js) version 0.7.3";
exports.global = global;
exports.require = global.require;