jrburke/requirejs — Issue #138: If return value is used but exports and module supplied result is empty object
Author: josephjoaquinmartin
Created: 2011-11-09 13:39:34+00:00
State: open

For example, in this module:
```
//brograbs.js
define(function(require, exports, module) {
return function() {console.log("bro grabs?");};
});
```

results in an empty object instead of a function.

I think the issue is that the return value is only used if module is undefined but an empty object is passed in so it is always defined.