HTML Exporter: make JS work on Firefox as well

It appears the standard way to figure out what type of element is sending
the event is to use .target instead of .toElement - specifically, Firefox
doesn't understand .toElement and so the expansion of dives by clicking on
them didn't work in Firefox.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-17 10:15:08 -07:00
parent 3778f94f6f
commit a922e52b8f

View file

@ -167,7 +167,7 @@ function setNumberOfDives(e)
function toggleExpantion(e, ul)
{
if (e.toElement.localName === "a" ) {
if (e.target.localName === "a" ) {
return;
}
if (!items[ul.id].expanded) {