Can someone please help me out with this? I'm using jquery-1.4.2.
Thank you so much!
Edit - Adding the original so this is more useful later:
$$('.clickables').each(function(clickable) {
    var list = clickable.getElements('li');
    list.addEvent('click', function() {
        var link = this.getElement('a');
        if(this.getFirst('a')) {
            window.location = link
        }
    });
});