> I added this to the FileDropPlugin with the other window
> addEventListener code, and it worked like a charm. What I don't
> understand is what this code is inside a "if(!window.event)"
> structure. I'm sure there's a good reason, it just seems
> counterintuitive ... like why isn't it inside a "if(window.event)"
> structure instead?

window.event is an IE-only global, related to the strange way that
Microsoft handles event processing.  'Sniffing' for this variable is a
reliable way to ensure that the addEventListener() stuff isn't called
for IE.

I suppose it would be more obvious if the test was something like:

if (window.addEventListener) {
   ...
}

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to