Self invoking anonymous functions

Hello.

'just watched a lee brimlow screencast about OOP in javascript. Great for AS3 peeps moving to javascript btw.

Now in it he declares a SIAF like so:

(function() {
// code
}());

I have been using this method - which I have got from having my head in jQuery:

(function() {
// code
})();

spot the difference - the latter makes sense to me, where as lee’s approach, baffles me a little.

Can anyone clarify his method?
ps this is not about jQuery - but basic JS.

Thankyov’