rufuspollock-okfn / bubbletree

Radial Bubble Tree Visualization
http://okfnlabs.org/bubbletree
152 stars 69 forks source link

Internet Explorer issues: onhover and onunhover #16

Open tgillet1 opened 12 years ago

tgillet1 commented 12 years ago

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.

zzolo commented 12 years ago

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)

James70 commented 11 years ago

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 :)