|
|
|
|
|
by flebron
4913 days ago
|
|
That's not a JS inconsistency, that's just the browser calling yourhandler.call(yourobject, eventobject). The underlying statement is that "event handler" is not a concept in JS, it's just a way of calling functions that some implementations use for some things (browsers for actions, node for I/O, etc...). In fact, this didn't use to be true of old IE versions if I remember correctly, so it's not a matter of the language, but of what the browser does with your function during event firings. |
|