Randomly get Javascript error with array loaded with JSON
Click the "Random" button and click through the alerts. Usually after the first few the error will occur.
https://drive.google.com/file/d/0B_14V9 ... sp=sharing
Attach a Capx
https://drive.google.com/file/d/0B_14V9 ... sp=sharing
Description of Capx
Function (Set Array) that loads an Array with JSON string.
Function (Get Random Number) loop through the array randomly selecting values and removing them from the array so it gets smaller. Each time a value gets selected the array gets smaller so there are no repeated values.
Steps to Reproduce Bug
Click the "Random" button and click through the alerts. Usually after the first few the error will occur.
Observed Result
An error occurs.
Expected Result
Not to have an error.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
Windows 10 Preview 10130
Construct 2 Version ID
R208
edit: Updated title