The curious case.
…of a mysterious bug that seems to resolve itself when you undo 5 minutes worth of code and redo all of it. Slowly. #
I get that I could have left accidental keyboard artifacts into the code that cause random syntax errors. But those are easy to identify. So then what?
I close-reopen the tab, restart chrome. Nothing.
I start undoing everything slowly. You know… undo, check, undo, check. Till I reach a point where its working. I start redoing the same way back. I reach the end of my redo history and guess what? Its working just fine. /cry /wrist
I think browsers like messing with you for the fun of it. Like a mysterious refresh counter which upon reaching a certain number just stops executing code. Those bastards from Chrome like messing with us.
(This was originally written a few months back. Don’t remember when. It was sitting in a text file which, unfortunately, I modified before I could see its last changed date.)