Can anyone explain what this statement means?
e = e || x
Specifically,
e = e || window.event
This appears in a chunk of code I am looking at.
I'm not at a complete loss, however My understanding is that it assigns both e
and window.event
(or x/whatever) to e. It's only natural, right?
But what is the value in assigning e
to e
? Shouldn't e = window.event
be enough? Perhaps is depends on how it is used?