highslide-software/highcharts.com — Issue #499: MooTools issue in renderer.g()
Author: maorcc
Created: 2011-10-16 00:24:42+00:00
State: open

I'm using highCharts 2.1.6 and MooTools 1.4.1 and I kept getting a DOMException when doing:
chart.renderer.g();

I've done some investigation and I have a fix.
The fix is to add the following "if" statement before line 1541:
if(hash !== false)
It turns out when debugging that in line 1541 the "hash" variable contains a 'false' value. This should be fine, but not with MooTools.
But when MooTools is around it enters the for loop in that line.

It is probably a MooTools bug because the following lines produce two alerts:

for (i in false) alert(i)

see it here: http://jsfiddle.net/tDYac/

This is strange, but the fix above works.
I would appreciate if you could add such an if statement to the highcharts code.

Thanks,
Maor