This happened one time randomly for me, on a production site last year. It happened again this year, thankfully not on a production site, but I still would like an answer.
Basically I had some code in my javascript like:
$("#register-login").dialog({draggable:true, dialogClass:"rl-modal modal", modal: true})This was working, without a hitch, for a few weeks now. All of a sudden, I refresh the page and, boom!
Took me about three hours to figure out that all the options were blank.
Now this happened to me last year on a production site. Boy was I sweating, when no javascript was working. I actually went and rewrote the code so it didn’t use these object literals.
Eventually I realized, that if I just moved one of the brackets to a new line, EE doesn’t try to “parse” them. So this time, as soon as I realized what was going on, I fixed the problem.
So, obviously, EE thinks that these are template variables. I can dig that. The problem is why would it randomly change like that?