Exhibit A:
var pt = [0,0,0,0,0,0];
console.log(pt[0], pt);
sometimes the log will spit out 0 [Infinity, Infinity, Infinity, Infinity, Infinity, Infinity], but only when you do a SIX zeroes array for pt. If you do five zeroes then you get an array of five zeroes as expected. The big clencher is how pt[0] can occassionally be 0 and Infinity a the same time confusion
Steps to re-create the problem:
- Download the
Developmentbranch of Flanvas - Make sure you place the folder in web-server directory (otherwise you will encounter cross-domain issues)
- Run the page
examples/loader-svg.js - Look at the console to see the mix-up I'm referring to.
*Notes
- The console log in question (Exhibit A) located in
src/flanvas.json line 2958 - The framework has recently undergone a "shload" of updates and you'll notice not everything works -- I am aware.
- I'm testing on
Mac OSX 10.6.8andChrome 15.0.874.121
If there are any problems with my instructions, please post back and I'll get to them ASAP. Thanks.
** Clarification of the question **
If I run console.log(pt[0], pt); then I expect that the first value from the array pt and pt[0] will be identical. That's not the case in my Exhibit A. Why not?
console.log(pt[0], pt);then I expect that the first value from the arrayptandpt[0]will be identical. In this case it isn't. I'll add this to an edit as well.