Keeping up to Date January 25th, 2008

Many months ago, we changed from Prototype to jQuery, and couldn't be happier. Sadly, we had this recent commit.

$('.time').each(function(s) {s.innerHTML = date_string;})

This is some perverse hybrid of prototype and jquery. You see, jQuery selectors use the '#' and '.' to denote ID's and classes, respectively. Just like css. $('id_name') in prototype is the equivalent of $('#id_name') in jQuery.

Obviously, this javascript doesn't work. The submitter is not only out of the loop on our framework, but also so lazy as to not check their work. Yes, these people exist.

Sorry, comments are closed for this article.