Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[BETA] Color Picker

#8
It's an ES6 problem, but it's a weird one. The error points to a for..of loop which is an addition in ES6 but it was added to FF in FF36, so well before your version.
That being said, for..of typically uses const instead of var, and const definitions changed in FF51, especially how they behave in loops specifically.
I'll look into it a little more later on, in the meanwhile may I suggest Microsoft Edge™, the latest browser from your favourite computer company, Microsoft®, with Full ES6© compatibility? ;P

Alright. I think I know how to fix it. I hope it doesn't cause more errors, but it all has to do with how for..of loops are supposed to entirely kill their instance and start a new one for scoping on each iteration. It was addressed in FF51, but the problem is that the bug exists in every other iteratable-object loop, like for..in or foreach().

Now, I'm not too sure if my solution will fix it or completely create new bugs because ES6's variable types behave differently in different types of loops. Technically, all var, const, and let should work in a for..of loop, but I don't know if it'll break the script somewhere later down the road because of how I fix it. Scoping is a pain.

I'll need to reupload the script somewhere, so yeah bear with it for a bit xd
Reply


Messages In This Thread
[BETA] Color Picker - by Lain - May 1st, 2020 at 9:33 PM
RE: [ALPHA] Color Picker - by Darth-Apple - May 1st, 2020 at 9:53 PM
RE: [ALPHA] Color Picker - by s3_gunzel - May 1st, 2020 at 10:02 PM
RE: [ALPHA] Color Picker - by tc4me - May 2nd, 2020 at 6:16 AM
RE: [ALPHA] Color Picker - by SpookyZalost - May 3rd, 2020 at 1:44 AM
RE: [ALPHA] Color Picker - by Lain - May 3rd, 2020 at 1:56 AM
RE: [ALPHA] Color Picker - by SpookyZalost - May 3rd, 2020 at 1:59 AM
RE: [ALPHA] Color Picker - by Lain - May 3rd, 2020 at 2:15 AM
RE: [ALPHA] Color Picker - by SpookyZalost - May 3rd, 2020 at 3:22 AM
RE: [ALPHA] Color Picker - by tc4me - May 3rd, 2020 at 5:44 AM
RE: [BETA] Color Picker - by Lain - May 8th, 2020 at 1:42 AM
RE: [BETA] Color Picker - by tc4me - May 8th, 2020 at 4:16 AM
RE: [BETA] Color Picker - by Lain - May 8th, 2020 at 4:23 AM
RE: [BETA] Color Picker - by tc4me - May 8th, 2020 at 4:32 AM
RE: [BETA] Color Picker - by Lain - May 8th, 2020 at 7:17 AM
RE: [BETA] Color Picker - by Guardian - May 8th, 2020 at 12:49 PM
RE: [BETA] Color Picker - by Darth-Apple - May 9th, 2020 at 4:50 AM
RE: [BETA] Color Picker - by Lain - May 15th, 2020 at 1:16 AM
RE: [BETA] Color Picker - by tc4me - May 16th, 2020 at 6:01 PM
RE: [BETA] Color Picker - by Lain - August 2nd, 2020 at 4:40 PM
RE: [BETA] Color Picker - by Thomas - August 2nd, 2020 at 5:27 PM
RE: [BETA] Color Picker - by Lain - August 2nd, 2020 at 8:34 PM
RE: [BETA] Color Picker - by Darth-Apple - August 2nd, 2020 at 8:41 PM
RE: [BETA] Color Picker - by Kim Winchester - August 2nd, 2020 at 9:57 PM
RE: [BETA] Color Picker - by Kyng - August 4th, 2020 at 7:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Anyone want to beta test Makestation's new theme? Darth-Apple 9 21,244 October 9th, 2013 at 7:30 PM
Last Post: Darth-Apple



Users browsing this thread: 2 Guest(s)

Dark/Light Theme Selector

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication 
Proudly powered by MyBB 1.8, © 2002-2024
Forum design by Makestation Team © 2013-2024