Here is the whole class, if it makes it any easier. http://pastebin.com/G4jGS7R5 I've been stuck on it for a bit now
-
-
Replying to @DaveVoyles
@DaveVoyles which is, why is EntityWP[i] returning "undefined" and not an object?1 reply 0 retweets 0 likes -
Replying to @mapagella
@mapagella I'm not sure. It should be returning 3 of those points (which I can see are drawn on screen, so they exist!)1 reply 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles I'm assuming you're running this on a web browser, is that correct? If so, which one?1 reply 0 retweets 0 likes -
Replying to @mapagella
@mapagella Yup, chrome. Throws the same error in all of them though. I'm thinking I'm doing something wrong with arrays1 reply 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles okay. Add console.log(EntityWP) in line 173 and inspect the values of the array. Perhaps you need to do EntityWP.length - 1?1 reply 0 retweets 0 likes
@mapagella Found it, I had an extra ";" at the end! for (var i = 0; i < EntityWP.length; i++); {
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.