mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Fix StdEventableObject in lib/std.js
This commit is contained in:
parent
07ee4298f7
commit
92c57c3e94
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user