jashkenas/coffee-script — Issue #1858: Global return should always generate safety closure 
Author: josh
Created: 2011-11-11 18:15:04+00:00
State: open

If theres is a global return statement, the safety closure can't be optimized away.

``` coffee
return unless $
$('.foo').click()
```

## 1.1.2

``` js
(function() {
if (!$) {
return;
}
$('.foo').click();
}).call(this);
```

## 1.1.3

```
if (!$) return;

$('.foo').click();
```