This. This is what ruined half of my day today. The person who wrote this was more clueless than a 9 year old who never had any computer experience at all. Dear person, I don’t know you, but I hate you.
The above abomination killed pretty much every single jQuery related statement in a page. I cannot imagine WHAT might have driven that particular person to put something like that in code. Here area few possible explanations about The Person In Question:
2) TPIQ was a Prototype user. Although, if that were the case for the above statement, someone’s mind performs some awfully big leaps of logic.
3) TPIQ just wanted to make “the god damn plugin I downloaded” to work. That would imply some knowledge of Firebug but I refuse to accept the complete absence of jQuery’s existence by anyone who knows what “a Firebug” is.
4) TPIQ was a complete newbie, he threw that fix in and suddenly, due to a f***load of scripts loading in the same page, due to some twist of nature and jQuery’s essentials (I’m guessing here, so cut me some slack) it actually worked.
Apart from the real cause for the existence of this bloody atrocious murdering “code-shiv’s”, this isn’t even the worst part. It also manages to be completely inelegant, since TPIQ could have simply written:
var $= document.getElementById;
Agreed, it would produce the same crap on the page, but at least it’d have shown some sophistication and might, perhaps, maybe a reason for its existence. Or you could simply pair it with a comment it you know and give me a wonderful ride in your mind’s distorted view of reality.
Yeah. You suck, person.