I am rewriting some of my javascript files to get rid of the jQuery and use Google Closure instead. I have got a date picker which a user can toggle to show or to hide. At the moment the following code is being used:
if (this.open == open)
return false;
$(this.elDatePicker).toggle(open);
this.open = open;
return true;
Where el.DatePicker is the element with the date picker inside, in this case a div.
I am looking for a way to rewrite this piece of code to change the jQuery to Google Closure. Any idea's how this should be possible?