mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-01 14:37:02 +00:00
Update std.js
This commit is contained in:
parent
624742edf6
commit
031846c2ba
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user