anodynos/uRequire — pull request #50 by plepers (2014-02-18 10:43:30+00:00)
Title: Missing "var" statement in dependencies. (AMD to nodejs)

uRequire v0.6.10

When convert AMD module to nodejs/commonjs format, the "var" statement is missing at the beginning of dependencies loading.

eg.

AMD source
```js
define(
[
'eagl/core/Pipeline',
'eagl/lang',
'./Foo'
],
function(
Pipeline,
lang,
Foo
){

//...
return {};

});
```

"nodejs" result :
```js
(function (window, global) {

// !! expect "var Pipeline ...."
Pipeline = require('../core/Pipeline'),
lang = require('../lang'),
Object3D = require('./Object3D');

module.exports = (function () {
return {};
}).call(this);

}).call(this, (typeof exports === 'object' ? global : window), (typeof exports === 'object' ? global : window))
```

In [template, l.237](https://github.com/anodynos/uRequire/blob/master/source/code/templates/ModuleGeneratorTemplates.coffee#L237), is the _.any callback should be bound to this?

```
(dep, depIdx)=> (not dep.isSystem) and (@module?.parameters or [])[depIdx])
^
```

I can submit a PR if you wish.

Pierre