We are about to switch to a new forum software. Until then we have removed the registration on this forum.
While trying to understand some the examples found on the "Beyond the Canvas" page on Github under the header "Element specific listeners", I continually get the error: "Uncaught ReferenceError: context is not defined." I have followed the instructions to a tee, (uncommented the necessary lines in index.html) and the puzzling thing is that when I comment out the line throwing the error, the code works as advertised. I also cannot find the function context in the other .js files, so I am wondering if context is left over from a previous version, or has yet to be added. Can anyone spread some light for me?
Thanks
Answers
could you include the example that is not working, and also the version of p5.js you are using? (you can find the version number at the top of your p5.js file, like this one https://github.com/lmccart/p5.js/blob/master/lib/p5.js#L1)