bubbletree
bubbletree copied to clipboard
Internet Explorer issues: onhover and onunhover
I was getting an error reported as origEvent.pageX being "null or not an object". After some debugging I found that e.origEvent was undefined in the onhover (line 1378) and onunhover (line 1389) events. I tracked the problem to handleMemberHover, which uses vis4.DelayedTask. In vis4.DelayedTask (line 70), additional arguments (in this case just the event object that is to be assigned to origEvent) are processed using a "for (var i in args)" loop, which does not work in IE. I simply changed this to "for (var i = 0; i < args.length; i++)" and the problem was fixed.
Same issue, @tgillet1 fix worked. I did not hack the vis4 file, I just redefined the vis4.DelayedTask function.
Maybe this is fixed in a newer version of vis4? (as I am using the version that comes with BubbleTree)
To "Tgillet1": Thank you so much for taking the time to share your discovery regarding the script error in Internet Explorer when you hover or unhover over a bubble. I doubt I would ever had figured this out myself :)