2009/8/27 Richard Heyes <[email protected]>:
>
> Hi,
>
>> Strict in what sense?
>
> Hmm, not sure. I've setup an example here (you'll need FF3.5, Chrome 2
> or Safari 4):
>
> 1. http://dev.rgraph.net/test.html
> 2. http://dev.rgraph.net/test.html?no
>
> The version without (...?no) works fine, but the version with (which
> is exactly the same save for the inclusion of Prototype.js) doesn't.
> TIA.
>
> --
> Richard Heyes
> >
>

Hi Richard.

I'm getting an error in FF3.5 with FireBug.

Line 560 in RGraph.line.js

                    this.context.moveTo(xPos, yPos);

Adding a debug at this line, both xPos and yPos are undefined.

This is caused by the use for for(in).

Use ...

        for (i = 0 ; i < lineCoords.length ; ++i) {

instead.

http://prototypejs.org/api/array covers this issue.

-- 
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to