views:

56

answers:

2

I was looking at some jQuery UI code, a found a weird behavior there:

jQuery.ui||(function(a){ /*... */ })(jQuery);;

The logical OR is clear for me, the function wrapper (still searching the correct name for it), too, but why two semicolons?

Thanks in advance

Vincent

EDIT: Just found a another weird thing: In the version on google apis is only one semicolon. But when you create your on build on http://jqueryui.com/download, there are two semicolons.

A: 

Typo? I cannot think of any valid reason.

Diodeus
A: 

That must either be a bug or a misunderstanding. Two consecutive semicolons do not make sense.

Jakob Kruse