Update std.js

This commit is contained in:
Namhyeon Go 2022-01-09 14:33:21 +09:00 committed by GitHub
parent 624742edf6
commit 031846c2ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ var StdEvent = function(eventName) {
var StdEventableObject = function() {
this.dispatchEvent = function(event) {
event.target = this;
if(eventName in this) this['on' + event.eventName](event);
if(('on' + event.eventName) in this) this['on' + event.eventName](event);
};
this.addEventListener = function(eventName, fn) {